on master help sign in
Add support for the uxntal language (#6047)
5ff2cb2Jummit
book/src/generated/lang-support.md+1
@@ -134,6 +134,7 @@
134| twig | ✓ | | | |
134| twig | ✓ | | | |
135| typescript | ✓ | ✓ | ✓ | `typescript-language-server` |
135| typescript | ✓ | ✓ | ✓ | `typescript-language-server` |
136| ungrammar | ✓ | | | |
136| ungrammar | ✓ | | | |
137+| uxntal | ✓ | | | |
137| v | ✓ | | | `v` |
138| v | ✓ | | | `v` |
138| vala | ✓ | | | `vala-language-server` |
139| vala | ✓ | | | `vala-language-server` |
139| verilog | ✓ | ✓ | | `svlangserver` |
140| verilog | ✓ | ✓ | | `svlangserver` |
languages.toml+13
@@ -2167,3 +2167,16 @@ comment-token = "#"
2167[[grammar]]
2167[[grammar]]
2168name = "hosts"
2168name = "hosts"
2169source = { git = "https://github.com/ath3/tree-sitter-hosts", rev = "301b9379ce7dfc8bdbe2c2699a6887dcb73953f9" }
2169source = { 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