From 8a58b6cf60425264c7e052c55e00a28b42830eb4 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 21 Apr 2012 21:01:08 +1000 Subject: Fix problem with JavaScript /*/ which starts a comment. Bug #3520032. --- lexers/LexHTML.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lexers') 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; -- cgit v1.2.3