mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2026-01-05 14:10:13 +03:00
Add indentation rules support for gdscript
This commit is contained in:
@@ -21,5 +21,9 @@
|
|||||||
["(", ")"],
|
["(", ")"],
|
||||||
["[", "]"],
|
["[", "]"],
|
||||||
["{", "}"]
|
["{", "}"]
|
||||||
]
|
],
|
||||||
}
|
"indentationRules": {
|
||||||
|
"increaseIndentPattern": "^\\s*((class|func|else|elif|for|if|match|while|enum)|(.*\\sdo\\b))\\b[^\\{;]*$",
|
||||||
|
"decreaseIndentPattern": "^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(else|elif|return|break|continue)\\b)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"repository": "https://github.com/GodotExplorer/godot-tools",
|
"repository": "https://github.com/GodotExplorer/godot-tools",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.5.0"
|
"vscode": "^1.9.1"
|
||||||
},
|
},
|
||||||
"categories": [
|
"categories": [
|
||||||
"Other"
|
"Other"
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^2.0.3",
|
"typescript": "^2.0.3",
|
||||||
"vscode": "^1.0.0",
|
"vscode": "^1.1.4",
|
||||||
"mocha": "^2.3.3",
|
"mocha": "^2.3.3",
|
||||||
"@types/node": "^6.0.40",
|
"@types/node": "^6.0.40",
|
||||||
"@types/mocha": "^2.2.32"
|
"@types/mocha": "^2.2.32"
|
||||||
|
|||||||
Reference in New Issue
Block a user