aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-06-18 10:38:01 +0000
committernyamatongwe <unknown>2001-06-18 10:38:01 +0000
commit750a163a1c6ef75a8399473ea1b2ce75293d7855 (patch)
tree9d78070b9a0906118b61f87a1eb4828cee915897 /src
parentaa442dbc162c0b0f5026e15030292d080111699f (diff)
downloadscintilla-mirror-750a163a1c6ef75a8399473ea1b2ce75293d7855.tar.gz
Added X-Code comment lexical class.
Diffstat (limited to 'src')
-rw-r--r--src/LexHTML.cxx10
1 files changed, 10 insertions, 0 deletions
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;