Skip to content

Commit

Permalink
Fix bad base indentation in Lua mode
Browse files Browse the repository at this point in the history
FIX: Fix an issue causing the Lua mode to indent everything one unit too far.

Closes codemirror/dev#757
  • Loading branch information
marijnh committed Mar 1, 2022
1 parent 8f36abc commit 8866c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/lua.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function string(quote) {

export const lua = {
startState: function(basecol) {
return {basecol: basecol || 0, indentDepth: 0, cur: normal};
return {basecol: 0, indentDepth: 0, cur: normal};
},

token: function(stream, state) {
Expand Down

0 comments on commit 8866c82

Please sign in to comment.