Skip to content

Commit 92b908e

Browse files
committed
Fix misspelled property name in simple-mode
FIX: Fix a crash in simple-mode.js when using the `dontIndentStates` feature. Closes #19
1 parent 8fcea3d commit 92b908e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/simple-mode.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function tokenFunction(states) {
110110

111111
function indentFunction(states, meta) {
112112
return function(state, textAfter) {
113-
if (state.indent == null || meta.dontIndentStates && meta.doneIndentState.indexOf(state.state) > -1)
113+
if (state.indent == null || meta.dontIndentStates && meta.dontIndentStates.indexOf(state.state) > -1)
114114
return null
115115

116116
var pos = state.indent.length - 1, rules = states[state.state];

0 commit comments

Comments
 (0)