diff options
| author | nyamatongwe <unknown> | 2007-07-26 10:14:08 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2007-07-26 10:14:08 +0000 | 
| commit | 50c550fbaa760461e3262ceaa2e0ab183f94ba21 (patch) | |
| tree | 26d28d02dcc649ce3135737ab9261627ab27ca19 /src/LexHTML.cxx | |
| parent | a4630053870ee640e1c0a4412898e266a63ce614 (diff) | |
| download | scintilla-mirror-50c550fbaa760461e3262ceaa2e0ab183f94ba21.tar.gz | |
XML script indicator is only active if only whitespace before it.
Diffstat (limited to 'src/LexHTML.cxx')
| -rw-r--r-- | src/LexHTML.cxx | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index c41fcbbfa..97be5f08f 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -71,8 +71,15 @@ static script_type segIsScriptingIndicator(Accessor &styler, unsigned int start,  		return eScriptJS;  	if (strstr(s, "php"))  		return eScriptPHP; -	if (strstr(s, "xml")) +	if (strstr(s, "xml")) { +		const char *xml = strstr(s, "xml"); +		for (const char *t=s; t<xml; t++) { +			if (!IsASpace(*t)) { +				return prevValue; +			} +		}  		return eScriptXML; +	}  	return prevValue;  } | 
