diff options
author | nyamatongwe <devnull@localhost> | 2012-04-21 21:01:08 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2012-04-21 21:01:08 +1000 |
commit | 8a58b6cf60425264c7e052c55e00a28b42830eb4 (patch) | |
tree | f4c3f25e1a8f7966fb46670ba2fbdbc901dba13b /lexers/LexHTML.cxx | |
parent | d037dc0fc207420e2e198a9fc65e93bf1041226f (diff) | |
download | scintilla-mirror-8a58b6cf60425264c7e052c55e00a28b42830eb4.tar.gz |
Fix problem with JavaScript /*/ which starts a comment. Bug #3520032.
Diffstat (limited to 'lexers/LexHTML.cxx')
-rw-r--r-- | lexers/LexHTML.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx index a22a675a5..9ebca16f8 100644 --- a/lexers/LexHTML.cxx +++ b/lexers/LexHTML.cxx @@ -1584,6 +1584,10 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty state = SCE_HJ_COMMENTDOC; else state = SCE_HJ_COMMENT; + if (chNext2 == '/') { + // Eat the * so it isn't used for the end of the comment + i++; + } } else if (ch == '/' && chNext == '/') { styler.ColourTo(i - 1, StateToPrint); state = SCE_HJ_COMMENTLINE; |