Add support for angle bracket matching and colorization in Typescript

This commit is contained in:
Bryan Lee
2022-06-10 17:10:07 +08:00
parent 16f24e23e4
commit fac840f22c
2 changed files with 31 additions and 0 deletions

View File

@@ -99,6 +99,24 @@
">"
]
],
"colorizedBracketPairs": [
[
"(",
")"
],
[
"[",
"]"
],
[
"{",
"}"
],
[
"<",
">"
]
],
"autoCloseBefore": ";:.,=}])>` \n\t",
"folding": {
"markers": {

View File

@@ -64,6 +64,13 @@
"language": "typescript",
"scopeName": "source.ts",
"path": "./syntaxes/TypeScript.tmLanguage.json",
"unbalancedBracketScopes": [
"keyword.operator.relational",
"storage.type.function.arrow",
"keyword.operator.bitwise.shift",
"meta.brace.angle",
"punctuation.definition.tag"
],
"tokenTypes": {
"meta.template.expression": "other",
"meta.template.expression string": "string",
@@ -78,6 +85,12 @@
"language": "typescriptreact",
"scopeName": "source.tsx",
"path": "./syntaxes/TypeScriptReact.tmLanguage.json",
"unbalancedBracketScopes": [
"keyword.operator.relational",
"storage.type.function.arrow",
"keyword.operator.bitwise.shift",
"punctuation.definition.tag"
],
"embeddedLanguages": {
"meta.tag.tsx": "jsx-tags",
"meta.tag.without-attributes.tsx": "jsx-tags",