languages: additions to syntax configs found during lsp work

This commit is contained in:
Tyler Wilding 2022-07-29 00:06:09 -04:00
parent 20a60e039b
commit 4ef96d531a
No known key found for this signature in database
GPG key ID: A89403EB356ED106
4 changed files with 38 additions and 4 deletions

View file

@ -137,7 +137,7 @@
"light": "./icons/opengoal-goos.png", "light": "./icons/opengoal-goos.png",
"dark": "./icons/opengoal-goos.png" "dark": "./icons/opengoal-goos.png"
}, },
"configuration": "./language-configuration.json" "configuration": "./syntaxes/configs/opengoal-goos.jsonc"
}, },
{ {
"id": "opengoal-ir", "id": "opengoal-ir",
@ -152,7 +152,7 @@
"light": "./icons/opengoal-ir.png", "light": "./icons/opengoal-ir.png",
"dark": "./icons/opengoal-ir.png" "dark": "./icons/opengoal-ir.png"
}, },
"configuration": "./syntaxes/configs/ir.jsonc" "configuration": "./syntaxes/configs/opengoal-ir.jsonc"
} }
], ],
"grammars": [ "grammars": [

View file

@ -0,0 +1,32 @@
{
"comments": {
"lineComment": ";;",
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
"blockComment": ["#|", "|#"]
},
// symbols used as brackets
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
["(", ")"],
["\"", "\""]
],
// symbols that can be used to surround a selection
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""]
],
"folding": {
"markers": {
"start": "\\(\\s*$",
"end": "^\\s*\\)"
}
},
"wordPattern": "[^\\s,\\(\\)]+"
}

View file

@ -14,5 +14,6 @@
"start": "^; \\.function.*", "start": "^; \\.function.*",
"end": "^;; \\.endfunction\\b" "end": "^;; \\.endfunction\\b"
} }
} },
"wordPattern": "[^\\s,\\(\\)]+"
} }

View file

@ -27,5 +27,6 @@
"start": "\\(\\s*$", "start": "\\(\\s*$",
"end": "^\\s*\\)" "end": "^\\s*\\)"
} }
} },
"wordPattern": "[^\\s,\\(\\)]+"
} }