aboutsummaryrefslogtreecommitdiff
path: root/pu2/i2-syntax/language-configuration.json
diff options
context:
space:
mode:
authorGravatar Moon Flower <moon@coffin.ir> 2025-08-23 23:07:42 +0330
committerGravatar Moon Flower <moon@coffin.ir> 2025-08-23 23:07:42 +0330
commit4fb5091b23dad78709c939f0db263f478d900818 (patch)
tree1aaecdb89dce007f897346bcf081c378c2b54a0d /pu2/i2-syntax/language-configuration.json
parentoops (diff)
updated extension grammar
Diffstat (limited to 'pu2/i2-syntax/language-configuration.json')
-rw-r--r--pu2/i2-syntax/language-configuration.json79
1 files changed, 64 insertions, 15 deletions
diff --git a/pu2/i2-syntax/language-configuration.json b/pu2/i2-syntax/language-configuration.json
index 2cbf13c..2ea7ee0 100644
--- a/pu2/i2-syntax/language-configuration.json
+++ b/pu2/i2-syntax/language-configuration.json
@@ -1,25 +1,74 @@
{
"comments": {
- "lineComment": "//"
+ "lineComment": "//",
+ "blockComment": [
+ "/*",
+ "*/"
+ ]
},
"brackets": [
- ["{", "}"],
- ["[", "]"],
- ["(", ")"]
+ [
+ "{",
+ "}"
+ ],
+ [
+ "[",
+ "]"
+ ],
+ [
+ "(",
+ ")"
+ ]
],
"autoClosingPairs": [
- { "open": "{", "close": "}" },
- { "open": "[", "close": "]" },
- { "open": "(", "close": ")" },
- { "open": "\"", "close": "\"", "notIn": ["string"] },
- { "open": "'", "close": "'", "notIn": ["string"] }
+ {
+ "open": "{",
+ "close": "}"
+ },
+ {
+ "open": "[",
+ "close": "]"
+ },
+ {
+ "open": "(",
+ "close": ")"
+ },
+ {
+ "open": "\"",
+ "close": "\"",
+ "notIn": [
+ "string"
+ ]
+ },
+ {
+ "open": "'",
+ "close": "'",
+ "notIn": [
+ "string"
+ ]
+ }
],
"surroundingPairs": [
- { "open": "{", "close": "}" },
- { "open": "[", "close": "]" },
- { "open": "(", "close": ")" },
- { "open": "\"", "close": "\"" },
- { "open": "'", "close": "'" }
+ {
+ "open": "{",
+ "close": "}"
+ },
+ {
+ "open": "[",
+ "close": "]"
+ },
+ {
+ "open": "(",
+ "close": ")"
+ },
+ {
+ "open": "\"",
+ "close": "\""
+ },
+ {
+ "open": "'",
+ "close": "'"
+ }
],
"folding": {
"markers": {
@@ -27,4 +76,4 @@
"end": "^\\s*\\}"
}
}
-}
+} \ No newline at end of file