Skip to content

Commit

Permalink
[HTML] Fix server side JavaScript template literal highlighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Oct 21, 2024
1 parent 3c10615 commit beffa94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scintilla/lexers/LexHTML.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ constexpr int statePrintForState(int state, script_mode inScriptType) noexcept {
if ((state >= SCE_HB_START) && (state <= SCE_HB_OPERATOR)) {
return state + ((inScriptType == eNonHtmlScript) ? 0 : SCE_HA_VBS);
}
if ((state >= SCE_HJ_START) && (state <= SCE_HJ_REGEX)) {
if ((state >= SCE_HJ_START) && (state <= SCE_HJ_TEMPLATELITERAL)) {
return state + ((inScriptType == eNonHtmlScript) ? 0 : SCE_HA_JS);
}
}
Expand Down

0 comments on commit beffa94

Please sign in to comment.