We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29be39a commit 0f35444Copy full SHA for 0f35444
mode/smartymixed/smartymixed.js
@@ -77,7 +77,11 @@ CodeMirror.defineMode("smartymixed", function(config) {
77
78
var parsers = {
79
html: function(stream, state) {
80
- if (!state.inLiteral && stream.match(regs.htmlHasLeftDelimeter, false) && state.htmlMixedState.htmlState.tagName === null) {
+ var htmlTagName = state.htmlMixedState.htmlState.context && state.htmlMixedState.htmlState.context.tagName
81
+ ? state.htmlMixedState.htmlState.context.tagName
82
+ : null;
83
+
84
+ if (!state.inLiteral && stream.match(regs.htmlHasLeftDelimeter, false) && htmlTagName === null) {
85
state.tokenize = parsers.smarty;
86
state.localMode = smartyMode;
87
state.localState = smartyMode.startState(htmlMixedMode.indent(state.htmlMixedState, ""));
0 commit comments