diff options
| author | nyamatongwe <devnull@localhost> | 2002-04-22 23:58:55 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2002-04-22 23:58:55 +0000 | 
| commit | 7c5a0bd935d1c396d0682cf61625ef9a63f2b42c (patch) | |
| tree | 40dab10c9e0fa08f88e94822480e0528f37102fe /src/LexHTML.cxx | |
| parent | 826193c17c8d582b1f07fab6826dee5839f74746 (diff) | |
| download | scintilla-mirror-7c5a0bd935d1c396d0682cf61625ef9a63f2b42c.tar.gz | |
Script tag recognised in XML mode.
Diffstat (limited to 'src/LexHTML.cxx')
| -rw-r--r-- | src/LexHTML.cxx | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index d0d584634..a67e3707a 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -220,9 +220,11 @@ static int classifyTagHTML(unsigned int start, unsigned int end,  			isScript = 0 == strcmp(s, "script");  		}  	} -	if ((chAttr == SCE_H_TAGUNKNOWN) && !keywords) +	if ((chAttr == SCE_H_TAGUNKNOWN) && !keywords) {  		// No keywords -> all are known  		chAttr = SCE_H_TAG; +		isScript = 0 == strcmp(s, "script"); +	}  	styler.ColourTo(end, chAttr);  	return isScript ? SCE_H_SCRIPT : chAttr;  }  | 
