aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexHTML.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-08-04 09:25:43 +1000
committernyamatongwe <devnull@localhost>2010-08-04 09:25:43 +1000
commit2d5c090d405c0f0941a1c713135443454fa47122 (patch)
tree9a98c315c003876f9479591e3ab3e1e3be7f0f9f /lexers/LexHTML.cxx
parentf5524ed07ac6f093cdccd729fc440f12936827f5 (diff)
downloadscintilla-mirror-2d5c090d405c0f0941a1c713135443454fa47122.tar.gz
Bug #3038381 Escape of EOL in JS string does not work
Patch from Stephan Deibel.
Diffstat (limited to 'lexers/LexHTML.cxx')
-rw-r--r--lexers/LexHTML.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx
index 0d54e7a3e..e025c2b38 100644
--- a/lexers/LexHTML.cxx
+++ b/lexers/LexHTML.cxx
@@ -1628,7 +1628,9 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
i += 2;
} else if (isLineEnd(ch)) {
styler.ColourTo(i - 1, StateToPrint);
- state = SCE_HJ_STRINGEOL;
+ if (chPrev != '\\' && (chPrev2 != '\\' || chPrev != '\r' || ch != '\n')) {
+ state = SCE_HJ_STRINGEOL;
+ }
}
break;
case SCE_HJ_STRINGEOL: