on master help sign in
Add support for the uxntal language (#6047)
commit5ff2cb24e2ec5c8caf8972699e7ae69a15b710d1 authorJummit <jummit@web.de> dateSun 19 Feb 2023, 19:32 (4 years ago) parent71220da
3 files changed+29
book/src/generated/lang-support.md+1 languages.toml+13 runtime/queries/uxntal/highlights.scm+15
book/src/generated/lang-support.md+1
@@ -134,6 +134,7 @@
134134| twig | ✓ | | | |
135135| typescript | ✓ | ✓ | ✓ | `typescript-language-server` |
136136| ungrammar | ✓ | | | |
137+| uxntal | ✓ | | | |
137138| v | ✓ | | | `v` |
138139| vala | ✓ | | | `vala-language-server` |
139140| verilog | ✓ | ✓ | | `svlangserver` |
languages.toml+13
@@ -2167,3 +2167,16 @@ comment-token = "#"
21672167[[grammar]]
21682168name = "hosts"
21692169source = { git = "https://github.com/ath3/tree-sitter-hosts", rev = "301b9379ce7dfc8bdbe2c2699a6887dcb73953f9" }
2170+
2171+[[language]]
2172+name = "uxntal"
2173+scope = "source.tal"
2174+injection-regex = "tal"
2175+file-types = ["tal"]
2176+roots = []
2177+auto-format = false
2178+comment-token = "("
2179+
2180+[[grammar]]
2181+name = "uxntal"
2182+source = { git = "https://github.com/Jummit/tree-sitter-uxntal", rev = "9297e95ef74380b0ad84c4fd98f91e9f6e4319e6" }
runtime/queries/uxntal/highlights.scmnew file+15
@@ -0,0 +1,15 @@
1+; highlights.scm
2+
3+(identifier) @keyword
4+(number) @constant.numeric
5+(comment) @comment
6+(raw_character) @constant.character
7+(literal_hex) @constant.numeric.integer
8+(macro_definition) @function
9+(label_definition) @label
10+(sub_label_definition) @label
11+(relative_pad) @constant
12+(label) @label
13+(sub_label) @label
14+(ERROR) @error
15+["[" "]" "{" "}"] @punctuation.bracket