language-configuration.json 1.0 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
{
	"comments": {
		"lineComment": "//", // "#"
		"blockComment": [ "/*", "*/" ]
	},
	"brackets": [
		["{", "}"],
		["[", "]"],
		["(", ")"]
	],
	"autoClosingPairs": [
		{ "open": "{", "close": "}", "notIn": ["string"] },
		{ "open": "[", "close": "]", "notIn": ["string"] },
		{ "open": "(", "close": ")", "notIn": ["string"] },
15
		{ "open": "'", "close": "'", "notIn": ["string", "comment"] },
16 17 18 19 20 21 22 23
		{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] },
		{ "open": "/**", "close": " */", "notIn": ["string"] }
	],
	"surroundingPairs": [
		["{", "}"],
		["[", "]"],
		["(", ")"],
		["'", "'"],
24 25
		["\"", "\""],
		["`", "`"]
26 27
	],
	"indentationRules": {
28
		"increaseIndentPattern": "({(?!.*}).*|\\(|\\[|((else(\\s)?)?if|else|for(each)?|while|switch|case).*:)\\s*((/[/*].*|)?$|\\?>)",
C
Connor Peet 已提交
29
		"decreaseIndentPattern": "^(.*\\*\\/)?\\s*((\\})|(\\)+[;,])|(\\][;,])|\\b(else:)|\\b((end(if|for(each)?|while|switch));))"
30 31 32 33 34 35
	},
	"folding": {
		"markers": {
			"start": "^\\s*(#|\/\/)region\\b",
			"end": "^\\s*(#|\/\/)endregion\\b"
		}
36
	}
R
Rob Lourens 已提交
37
}