aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexHTML.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-07-25 11:18:27 +0000
committernyamatongwe <devnull@localhost>2001-07-25 11:18:27 +0000
commit4a69987c76efcaff51e24fca23488dda38700cbc (patch)
treede9d7f514c43b40d9c5c538ab6ebd429394b12df /src/LexHTML.cxx
parent908229ef41e2222b08fe49f7c0d4deee45f316e9 (diff)
downloadscintilla-mirror-4a69987c76efcaff51e24fca23488dda38700cbc.tar.gz
Make Tab Timmy work again.
Diffstat (limited to 'src/LexHTML.cxx')
-rw-r--r--src/LexHTML.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx
index f7cd0e286..be1da389c 100644
--- a/src/LexHTML.cxx
+++ b/src/LexHTML.cxx
@@ -560,15 +560,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 if ((chNext2 == '-') && (styler.SafeGetCharAt(i + 3) == '-')) {
+ styler.ColourTo(i + 3, SCE_H_ASP);
+ state = SCE_H_XCCOMMENT;
+ scriptLanguage = eScriptVBS;
+ continue;
} else {
if (chNext2 == '=') {
i += 2; // place as if it was the second next char treated