From 305de055bfe659b4713a9525054b3d9123d19fdd Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 18 Jun 2001 10:38:01 +0000 Subject: Added X-Code comment lexical class. --- src/LexHTML.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index f7ef6cd48..20418c747 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -551,6 +551,13 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty inScriptType = eNonHtmlPreProc; if (chNext2 == '@') { + char chNext3 = styler.SafeGetCharAt(i + 3); + if (chNext3 == '@') { + styler.ColourTo(i + 3, SCE_H_ASP); + state = SCE_H_XCCOMMENT; + scriptLanguage = eScriptVBS; + continue; + } i += 2; // place as if it was the second next char treated state = SCE_H_ASPAT; } else { @@ -597,6 +604,9 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty case SCE_HPHP_WORD: classifyWordHTPHP(styler.GetStartSegment(), i - 1, keywords5, styler); break; + case SCE_H_XCCOMMENT: + styler.ColourTo(i - 1, state); + break; default : styler.ColourTo(i - 1, StateToPrint); break; -- cgit v1.2.3