From edfa892e41cd8ce2f9df4d8afb7e3c0ac2889818 Mon Sep 17 00:00:00 2001 From: Stephan Deibel Date: Thu, 26 Oct 2017 08:53:46 +1100 Subject: Backport: Fix nested Django tags inside a comment breaking highlighting of rest of file. Backport of changeset 6408:9b831c859b2e. --- 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 018da1d4a..e17ba116c 100644 --- a/lexers/LexHTML.cxx +++ b/lexers/LexHTML.cxx @@ -1015,7 +1015,7 @@ static void ColouriseHyperTextDoc(Sci_PositionU startPos, Sci_Position length, i } // handle the start Django template code - else if (isDjango && scriptLanguage != eScriptPython && (ch == '{' && (chNext == '%' || chNext == '{'))) { + else if (isDjango && scriptLanguage != eScriptPython && scriptLanguage != eScriptComment && (ch == '{' && (chNext == '%' || chNext == '{'))) { if (chNext == '%') StringCopy(djangoBlockType, "%"); else -- cgit v1.2.3