From b08c61ac8d3f88be73789bd46a57f35f316bd893 Mon Sep 17 00:00:00 2001 From: Geequlim Date: Thu, 10 Aug 2017 13:51:49 +0800 Subject: [PATCH] Add indentation rules support for gdscript --- configurations/gdscript-configuration.json | 8 ++++++-- package.json | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/configurations/gdscript-configuration.json b/configurations/gdscript-configuration.json index 94ed6c9..2f30b98 100644 --- a/configurations/gdscript-configuration.json +++ b/configurations/gdscript-configuration.json @@ -21,5 +21,9 @@ ["(", ")"], ["[", "]"], ["{", "}"] - ] -} \ No newline at end of file + ], + "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)" + } +} diff --git a/package.json b/package.json index 0ffe899..509c4e8 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "repository": "https://github.com/GodotExplorer/godot-tools", "license": "MIT", "engines": { - "vscode": "^1.5.0" + "vscode": "^1.9.1" }, "categories": [ "Other" @@ -122,7 +122,7 @@ }, "devDependencies": { "typescript": "^2.0.3", - "vscode": "^1.0.0", + "vscode": "^1.1.4", "mocha": "^2.3.3", "@types/node": "^6.0.40", "@types/mocha": "^2.2.32"