aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexHTML.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-02-20 09:40:14 +1100
committernyamatongwe <unknown>2013-02-20 09:40:14 +1100
commitf25ff2bed20459e0c2705778cc8756276f1c6eb0 (patch)
treeaed460b262f2957a6177a05a7f2df5e136d25c30 /lexers/LexHTML.cxx
parent91ffb85cf35c76ac8de2c582ac7cfbab7cd936aa (diff)
downloadscintilla-mirror-f25ff2bed20459e0c2705778cc8756276f1c6eb0.tar.gz
Bug: [#1447]. Don't interrupt HTML comment for XML Processing Instruction.
Diffstat (limited to 'lexers/LexHTML.cxx')
-rw-r--r--lexers/LexHTML.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx
index 5fb6383fb..85107b4bf 100644
--- a/lexers/LexHTML.cxx
+++ b/lexers/LexHTML.cxx
@@ -900,6 +900,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
!isPHPStringState(state) &&
(state != SCE_HPHP_COMMENT) &&
(state != SCE_HPHP_COMMENTLINE) &&
+ (state != SCE_H_COMMENT) &&
(ch == '<') &&
(chNext == '?') &&
!IsScriptCommentState(state)) {