From 48807a25eb56dcec00d3b8e25bce49778aaa08d5 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 26 Jul 2007 10:14:08 +0000 Subject: XML script indicator is only active if only whitespace before it. --- src/LexHTML.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/LexHTML.cxx') 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