Skip to content

Commit

Permalink
Improve word matching for kebab case. (#223)
Browse files Browse the repository at this point in the history
Also add auto-indent.
  • Loading branch information
floitsch authored Aug 9, 2023
1 parent 4a7dfef commit 3e7d662
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
7 changes: 6 additions & 1 deletion vscode/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,10 @@
["(", ")"],
["\"", "\""],
["'", "'"]
]
],
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\%\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s\\$]+)",
"indentationRules": {
"increaseIndentPattern": "[\\:]([\\s]*\\|(\\s*[\\w-]+)+\\s*\\|)?$",
"decreaseIndentPattern": "^[\\s]*else[\\:]$"
}
}
12 changes: 9 additions & 3 deletions 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.7.0",
"version": "1.8.2",
"license": "MIT",
"type": "commonjs",
"engines": {
Expand All @@ -17,15 +17,21 @@
"url": "https://github.com/toitware/ide-tools.git"
},
"activationEvents": [
"onLanguage:toit",
"workspaceContains:**/*.toit",
"onView:toitView",
"onCommand:toit.ensureAuth",
"onCommand:toit.refreshView"
],
"icon": "images/toitware_logo.png",
"main": "./dist/extension.js",
"contributes": {
"configurationDefaults": {
"[toit]": {
"editor.wordSeparators": "`~!@#$%^&*()=+[{]}\\|;:'\",.<>/?",
"editor.indentSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false
}
},
"viewsContainers": {
"activitybar": [
{
Expand Down

0 comments on commit 3e7d662

Please sign in to comment.