Skip to content

Commit 9d63071

Browse files
committed
[mode/simple addon] Fix crash bug
Issue #4819
1 parent 66c02a5 commit 9d63071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/mode/simple.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
if (rule.data.dedent)
136136
state.indent.pop();
137137
var token = rule.token
138-
if (token.apply) token = token(matches)
138+
if (token && token.apply) token = token(matches)
139139
if (matches.length > 2) {
140140
state.pending = [];
141141
for (var j = 2; j < matches.length; j++)

0 commit comments

Comments
 (0)