More strict matching of tags: <blah> doesn't count as <b> anymore

This commit is contained in:
Twan van Laarhoven
2020-05-17 23:51:36 +02:00
parent ab4e7e59f3
commit 7ac44fcff1
4 changed files with 66 additions and 48 deletions
+6 -6
View File
@@ -85,12 +85,12 @@ SCRIPT_FUNCTION(check_spelling) {
while (pos < input.size()) {
Char c = input.GetChar(pos);
if (c == _('<')) {
if (is_substr(input, pos, _("<nospellcheck"))) unchecked_tag++;
else if (is_substr(input, pos, _("</nospellcheck"))) unchecked_tag--;
else if (is_substr(input, pos, _("<sym"))) unchecked_tag++;
else if (is_substr(input, pos, _("</sym"))) unchecked_tag--;
else if (is_substr(input, pos, _("<atom"))) unchecked_tag++;
else if (is_substr(input, pos, _("</atom"))) unchecked_tag--;
if (is_tag(input, pos, _("<nospellcheck"))) unchecked_tag++;
else if (is_tag(input, pos, _("</nospellcheck"))) unchecked_tag--;
else if (is_tag(input, pos, _("<sym"))) unchecked_tag++;
else if (is_tag(input, pos, _("</sym"))) unchecked_tag--;
else if (is_tag(input, pos, _("<atom"))) unchecked_tag++;
else if (is_tag(input, pos, _("</atom"))) unchecked_tag--;
// skip tag
auto after = skip_tag(input,pos);
if (word_start == pos) {