mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
More strict matching of tags: <blah> doesn't count as <b> anymore
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user