aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexHTML.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-02-20 09:40:14 +1100
committernyamatongwe <devnull@localhost>2013-02-20 09:40:14 +1100
commit54aad84d270b6a96e1190476c23d3264a21be8b4 (patch)
tree2c6a4636ed73fef67fb402a4d6ac1f9aaa632c92 /lexers/LexHTML.cxx
parent17dc8c634e9af95fa6dd5ccc77c96b4db61d2aaa (diff)
downloadscintilla-mirror-54aad84d270b6a96e1190476c23d3264a21be8b4.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)) {