From 8fb28f024bf597b55e8dbdf2bd11e3f9d69a5a41 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 25 Aug 2012 17:37:57 +1000 Subject: Long XML script tag correctly lexed. Bug #3534190. From Sakshi Verma. --- lexers/LexHTML.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexers/LexHTML.cxx') diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx index fe5e8c857..5fb6383fb 100644 --- a/lexers/LexHTML.cxx +++ b/lexers/LexHTML.cxx @@ -297,7 +297,7 @@ static int classifyTagHTML(unsigned int start, unsigned int end, if (allowScripts && 0 == strcmp(s, "script")) { // check to see if this is a self-closing tag by sniffing ahead bool isSelfClose = false; - for (unsigned int cPos = end; cPos <= end + 100; cPos++) { + for (unsigned int cPos = end; cPos <= end + 200; cPos++) { char ch = styler.SafeGetCharAt(cPos, '\0'); if (ch == '\0' || ch == '>') break; -- cgit v1.2.3