diff options
author | nyamatongwe <devnull@localhost> | 2006-05-02 13:45:55 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2006-05-02 13:45:55 +0000 |
commit | 7d592e9eb99c371aca7f58bc5fec0afb12196242 (patch) | |
tree | 448e1ffd2f7f099ae9f1d1cb0b3e5ea4fcfa3e3c /src/LexHTML.cxx | |
parent | 8b53f88284e6784b9c4d07ad60215cbf9d59b82d (diff) | |
download | scintilla-mirror-7d592e9eb99c371aca7f58bc5fec0afb12196242.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; |