aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexHTML.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-04-21 21:01:08 +1000
committernyamatongwe <devnull@localhost>2012-04-21 21:01:08 +1000
commit8a58b6cf60425264c7e052c55e00a28b42830eb4 (patch)
treef4c3f25e1a8f7966fb46670ba2fbdbc901dba13b /lexers/LexHTML.cxx
parentd037dc0fc207420e2e198a9fc65e93bf1041226f (diff)
downloadscintilla-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.cxx4
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;