-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from realybin/master
Add Typst grammar
- Loading branch information
Showing
9 changed files
with
1,767 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,7 @@ internal class GrammarNames | |
"SQL", | ||
"Swift", | ||
"TypescriptBasics", | ||
"Typst", | ||
"VB", | ||
"XML", | ||
"YAML" | ||
|
17 changes: 17 additions & 0 deletions
17
src/TextMateSharp.Grammars/Resources/Grammars/typst/cgmanifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"registrations": [ | ||
{ | ||
"component": { | ||
"type": "git", | ||
"git": { | ||
"name": "Myriad-Dreamin/tinymist", | ||
"repositoryUrl": "https://github.com/Myriad-Dreamin/tinymist", | ||
"commitHash": "1f9a42c2e863f6b1fe8624da796e47adf44a9a83" | ||
} | ||
}, | ||
"license": "Apache-2.0", | ||
"version": "0.11.20" | ||
} | ||
], | ||
"version": 1 | ||
} |
72 changes: 72 additions & 0 deletions
72
src/TextMateSharp.Grammars/Resources/Grammars/typst/language-configuration.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"comments": { | ||
"lineComment": "//", | ||
"blockComment": ["/*", "*/"] | ||
}, | ||
"brackets": [ | ||
["[", "]"], | ||
["{", "}"], | ||
["(", ")"] | ||
], | ||
"autoClosingPairs": [ | ||
{ | ||
"open": "[", | ||
"close": "]" | ||
}, | ||
{ | ||
"open": "{", | ||
"close": "}" | ||
}, | ||
{ | ||
"open": "(", | ||
"close": ")" | ||
}, | ||
{ | ||
"open": "\"", | ||
"close": "\"", | ||
"notIn": ["string"] | ||
}, | ||
{ | ||
"open": "$", | ||
"close": "$", | ||
"notIn": ["string"] | ||
}, | ||
|
||
["“", "”"], | ||
["‘", "’"], | ||
["《", "》"], | ||
["〈", "〉"], | ||
["(", ")"], | ||
["『", "』"], | ||
["「", "」"], | ||
["【", "】"], | ||
["〖", "〗"], | ||
["〔", "〕"], | ||
["[", "]"], | ||
["{", "}"] | ||
], | ||
"autoCloseBefore": ";:.,=}])>$ \n\t", | ||
"surroundingPairs": [ | ||
["[", "]"], | ||
["{", "}"], | ||
["(", ")"], | ||
["\"", "\""], | ||
["*", "*"], | ||
["_", "_"], | ||
["`", "`"], | ||
["$", "$"], | ||
|
||
["“", "”"], | ||
["‘", "’"], | ||
["《", "》"], | ||
["〈", "〉"], | ||
["(", ")"], | ||
["『", "』"], | ||
["「", "」"], | ||
["【", "】"], | ||
["〖", "〗"], | ||
["〔", "〕"], | ||
["[", "]"], | ||
["{", "}"] | ||
] | ||
} |
Oops, something went wrong.