diff options
| author | nyamatongwe <unknown> | 2004-10-29 22:29:12 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2004-10-29 22:29:12 +0000 | 
| commit | e5b4a3d88fb08677e9d16ef396124ef5c27fcce5 (patch) | |
| tree | be83e9475146a4e5c171dfcd2a550e2db6cc8f77 /src/LexHTML.cxx | |
| parent | c05fa117d3701b56d2b851d9031a3ad04f1fd2fb (diff) | |
| download | scintilla-mirror-e5b4a3d88fb08677e9d16ef396124ef5c27fcce5.tar.gz | |
Patch from Iago Rubio to allow <?xml to be included inside strings
without triggering xml recognition.
Diffstat (limited to 'src/LexHTML.cxx')
| -rw-r--r-- | src/LexHTML.cxx | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index c7ba85b8d..e3546b436 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -637,9 +637,10 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty  		         (state != SCE_HPHP_COMMENT) &&  		         (ch == '<') &&  		         (chNext == '?')) { +			scriptLanguage = segIsScriptingIndicator(styler, styler.GetStartSegment() + 2, i + 10, eScriptPHP); +			if (scriptLanguage != eScriptPHP && isStringState(state)) continue;  			styler.ColourTo(i - 1, StateToPrint);  			beforePreProc = state; -			scriptLanguage = segIsScriptingIndicator(styler, styler.GetStartSegment() + 2, i + 10, eScriptPHP);  			i++;  			visibleChars++;  			i += PrintScriptingIndicatorOffset(styler, styler.GetStartSegment() + 2, i + 10); | 
