Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

More "autoClosingPairs" and "autoCloseBefore" in language-configuration.json #411

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion editors/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"languages": [
{
"id": "typst",
"configuration": "./language-configuration.json",
"configuration": "./syntaxes/typst.language-configuration.json",
"extensions": [
".typ"
],
Expand All @@ -118,6 +118,13 @@
}
}
],
"grammars": [
{
"language": "typst",
"scopeName": "source.typst",
"path": "./syntaxes/typst.tmLanguage.json"
}
],
"semanticTokenTypes": [
{
"id": "bool",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"open": "(",
"close": ")"
},
{ "open": "/*", "close": " */" },
{
"open": "\"",
"close": "\"",
Expand All @@ -30,9 +31,14 @@
"open": "$",
"close": "$",
"notIn": ["string"]
},
{
"open": "`",
"close": "`",
"notIn": ["string"]
}
],
"autoCloseBefore": "$ \n\t",
"autoCloseBefore": ";:.,=}])>$ \n\t",
"surroundingPairs": [
["[", "]"],
["{", "}"],
Expand Down
Loading