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. --- doc/ScintillaHistory.html | 2 ++ lexers/LexHTML.cxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index fe4bc838c..15f29065e 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -410,6 +410,8 @@ darmar John Vella Chinh Nguyen + + Sakshi Verma

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