Fix bug in attribute value highlighting

Any newlines within strings are now properly catered for.

Fixes #3.
This commit is contained in:
Ben S
2015-11-23 12:56:37 +00:00
parent 2c27300233
commit 012448ebe8
3 changed files with 14 additions and 3 deletions

View File

@@ -206,6 +206,12 @@ SInt32 skipAttribute(BBLMTextIterator &iter)
length++;
break;
}
else if (ch == '"')
{
// We only want to skip newlines in attributes if they're within a string.
iter--;
length += skipString(iter);
}
else if (ch == '\n' || ch == '\r')
{
break;