Skip to content

Commit

Permalink
Don't indent after empty lines. (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch authored Nov 1, 2023
1 parent 6c26aab commit a382793
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion vscode/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,11 @@
"indentationRules": {
"increaseIndentPattern": "[\\:]([\\s]*\\|(\\s*[\\w-]+)+\\s*\\|)?$",
"decreaseIndentPattern": "^[\\s]*else[\\:]$"
}
},
"onEnterRules": [
{
"beforeText": "^\\s*$",
"action": { "indent": "none" }
}
]
}
2 changes: 1 addition & 1 deletion vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Toit",
"description": "Toit Programming Language Support",
"publisher": "toit",
"version": "1.8.2",
"version": "1.8.6",
"license": "MIT",
"type": "commonjs",
"engines": {
Expand Down

0 comments on commit a382793

Please sign in to comment.