aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-08-04 09:25:43 +1000
committernyamatongwe <unknown>2010-08-04 09:25:43 +1000
commitc38a645865461ec153af761c3b36c333224904ee (patch)
treeb3423eb880f81f1d46170bb2efbf0431db72c9c8
parentb150425346614b7a81f5e54ad948d1136fe3683b (diff)
downloadscintilla-mirror-c38a645865461ec153af761c3b36c333224904ee.tar.gz
Bug #3038381 Escape of EOL in JS string does not work
Patch from Stephan Deibel.
-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: