Skip to content

Commit

Permalink
Fix misspelled property name in simple-mode
Browse files Browse the repository at this point in the history
FIX: Fix a crash in simple-mode.js when using the `dontIndentStates` feature.

Closes #19
  • Loading branch information
marijnh committed Jan 1, 2025
1 parent 8fcea3d commit 92b908e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/simple-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function tokenFunction(states) {

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

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

0 comments on commit 92b908e

Please sign in to comment.