diff options
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; } |