diff options
author | nyamatongwe <unknown> | 2010-08-04 09:25:43 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-08-04 09:25:43 +1000 |
commit | c38a645865461ec153af761c3b36c333224904ee (patch) | |
tree | b3423eb880f81f1d46170bb2efbf0431db72c9c8 | |
parent | b150425346614b7a81f5e54ad948d1136fe3683b (diff) | |
download | scintilla-mirror-c38a645865461ec153af761c3b36c333224904ee.tar.gz |
Bug #3038381 Escape of EOL in JS string does not work
Patch from Stephan Deibel.
-rw-r--r-- | lexers/LexHTML.cxx | 4 |
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: |