diff options
author | uid22944 <unknown> | 2001-07-05 01:19:33 +0000 |
---|---|---|
committer | uid22944 <unknown> | 2001-07-05 01:19:33 +0000 |
commit | 549717a576754e0634b1cd4ee952236e9cb8e59b (patch) | |
tree | 20990c367198febc13711e30d64b3224688c550c /src/LexHTML.cxx | |
parent | ff142a354e548e743154721898d3c22596ce0854 (diff) | |
download | scintilla-mirror-549717a576754e0634b1cd4ee952236e9cb8e59b.tar.gz |
Ensured PHP operator style does not continue over whitespace.
Diffstat (limited to 'src/LexHTML.cxx')
-rw-r--r-- | src/LexHTML.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index 847c690cb..ac4f85c0d 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -726,10 +726,10 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty case SCE_H_ATTRIBUTE: if (!ishtmlwordchar(ch) && ch != '/' && ch != '-') { if (inScriptType == eNonHtmlScript) { - int scriptLanguagePrev = scriptLanguage; + int scriptLanguagePrev = scriptLanguage; scriptLanguage = segIsScriptingIndicator(styler, styler.GetStartSegment(), i - 1, scriptLanguage); - if ((scriptLanguagePrev != scriptLanguage) && (scriptLanguage == eScriptNone)) - inScriptType = eHtml; + if ((scriptLanguagePrev != scriptLanguage) && (scriptLanguage == eScriptNone)) + inScriptType = eHtml; } classifyAttribHTML(styler.GetStartSegment(), i - 1, keywords, styler); if (ch == '>') { @@ -1272,6 +1272,8 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty state = SCE_HPHP_VARIABLE; } else if (isoperator(ch)) { state = SCE_HPHP_OPERATOR; + } else if ((state == SCE_HPHP_OPERATOR) && (isspacechar(ch))) { + state = SCE_HPHP_DEFAULT; } break; ///////////// end - PHP state handling |