diff options
author | nyamatongwe <unknown> | 2006-05-02 13:45:55 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2006-05-02 13:45:55 +0000 |
commit | 845be30ece45039021ca02f32e931cfb99b1d0e5 (patch) | |
tree | 448e1ffd2f7f099ae9f1d1cb0b3e5ea4fcfa3e3c /src/LexHTML.cxx | |
parent | 65d052131765ec48e32b48196f0eda97f2dbdd34 (diff) | |
download | scintilla-mirror-845be30ece45039021ca02f32e931cfb99b1d0e5.tar.gz |
Fix for bug #1476445.
Changed extraction of language when a <? is found so that it doesn't look
at the whole line but just after the <? for the case where PHP is used to
fill in a script URL.
Diffstat (limited to 'src/LexHTML.cxx')
-rw-r--r-- | src/LexHTML.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index 95b78476b..dad8fce46 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -687,7 +687,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty (ch == '<') && (chNext == '?') && !IsScriptCommentState(state) ) { - scriptLanguage = segIsScriptingIndicator(styler, styler.GetStartSegment() + 2, i + 10, eScriptPHP); + scriptLanguage = segIsScriptingIndicator(styler, i + 2, i + 10, eScriptPHP); if (scriptLanguage != eScriptPHP && isStringState(state)) continue; styler.ColourTo(i - 1, StateToPrint); beforePreProc = state; |