diff options
| author | nyamatongwe <devnull@localhost> | 2001-06-18 10:38:01 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2001-06-18 10:38:01 +0000 | 
| commit | 305de055bfe659b4713a9525054b3d9123d19fdd (patch) | |
| tree | 9d78070b9a0906118b61f87a1eb4828cee915897 /src/LexHTML.cxx | |
| parent | 52e2b3e5a679d033cd349d60c0382279d2c63449 (diff) | |
| download | scintilla-mirror-305de055bfe659b4713a9525054b3d9123d19fdd.tar.gz | |
Added X-Code comment lexical class.
Diffstat (limited to 'src/LexHTML.cxx')
| -rw-r--r-- | src/LexHTML.cxx | 10 | 
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; | 
