Diff of /lexers/LexHTML.cxx [dd7ad0] .. [657c09]  Maximize  Restore

  Switch to unified view

a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx
...
...
893
        // handle the start of PHP pre-processor = Non-HTML
893
        // handle the start of PHP pre-processor = Non-HTML
894
        else if ((state != SCE_H_ASPAT) &&
894
        else if ((state != SCE_H_ASPAT) &&
895
                 !isPHPStringState(state) &&
895
                 !isPHPStringState(state) &&
896
                 (state != SCE_HPHP_COMMENT) &&
896
                 (state != SCE_HPHP_COMMENT) &&
897
                 (state != SCE_HPHP_COMMENTLINE) &&
897
                 (state != SCE_HPHP_COMMENTLINE) &&
898
               (state != SCE_H_COMMENT) &&
899
                 (ch == '<') &&
898
                 (ch == '<') &&
900
                 (chNext == '?') &&
899
                 (chNext == '?') &&
901
                 !IsScriptCommentState(state)) {
900
                 !IsScriptCommentState(state)) {
902
            beforeLanguage = scriptLanguage;
901
            beforeLanguage = scriptLanguage;
903
            scriptLanguage = segIsScriptingIndicator(styler, i + 2, i + 6, isXml ? eScriptXML : eScriptPHP);
902
            scriptLanguage = segIsScriptingIndicator(styler, i + 2, i + 6, isXml ? eScriptXML : eScriptPHP);
904
            if (scriptLanguage != eScriptPHP && isStringState(state)) continue;
903
            if ((scriptLanguage != eScriptPHP) && (isStringState(state) || (state==SCE_H_COMMENT))) continue;
905
            styler.ColourTo(i - 1, StateToPrint);
904
            styler.ColourTo(i - 1, StateToPrint);
906
            beforePreProc = state;
905
            beforePreProc = state;
907
            i++;
906
            i++;
908
            visibleChars++;
907
            visibleChars++;
909
            i += PrintScriptingIndicatorOffset(styler, styler.GetStartSegment() + 2, i + 6);
908
            i += PrintScriptingIndicatorOffset(styler, styler.GetStartSegment() + 2, i + 6);