mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Add support for Xena OpenAutomation files (#10448)
Add support for .xtc/.xoa/.xpc files * XTC stand for Xena Traffic Configuration * XOA stand for Xena OpenAutomation * XPC stand for Xena Port Configuration Theses three file time seems to be the most common file extension I encountered in the wild
This commit is contained in:
parent
70459b2b66
commit
8256ca7bc3
@ -215,6 +215,7 @@
|
|||||||
| wren | ✓ | ✓ | ✓ | |
|
| wren | ✓ | ✓ | ✓ | |
|
||||||
| xit | ✓ | | | |
|
| xit | ✓ | | | |
|
||||||
| xml | ✓ | | ✓ | |
|
| xml | ✓ | | ✓ | |
|
||||||
|
| xtc | ✓ | | | |
|
||||||
| yaml | ✓ | | ✓ | `yaml-language-server`, `ansible-language-server` |
|
| yaml | ✓ | | ✓ | `yaml-language-server`, `ansible-language-server` |
|
||||||
| yuck | ✓ | | | |
|
| yuck | ✓ | | | |
|
||||||
| zig | ✓ | ✓ | ✓ | `zls` |
|
| zig | ✓ | ✓ | ✓ | `zls` |
|
||||||
|
@ -3531,3 +3531,14 @@ comment-token = "#"
|
|||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "ldif"
|
name = "ldif"
|
||||||
source = { git = "https://github.com/kepet19/tree-sitter-ldif", rev = "0a917207f65ba3e3acfa9cda16142ee39c4c1aaa" }
|
source = { git = "https://github.com/kepet19/tree-sitter-ldif", rev = "0a917207f65ba3e3acfa9cda16142ee39c4c1aaa" }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "xtc"
|
||||||
|
scope = "source.xtc"
|
||||||
|
# Accept Xena Traffic Configuration, Xena Port Configuration and Xena OpenAutomation
|
||||||
|
file-types = [ "xtc", "xpc", "xoa" ]
|
||||||
|
comment-token = ";"
|
||||||
|
|
||||||
|
[[grammar]]
|
||||||
|
name = "xtc"
|
||||||
|
source = { git = "https://github.com/Alexis-Lapierre/tree-sitter-xtc", rev = "7bc11b736250c45e25cfb0215db2f8393779957e" }
|
||||||
|
27
runtime/queries/xtc/highlights.scm
Normal file
27
runtime/queries/xtc/highlights.scm
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
(parameter) @keyword
|
||||||
|
|
||||||
|
(change_port) @function.special
|
||||||
|
|
||||||
|
(template) @variable
|
||||||
|
|
||||||
|
[
|
||||||
|
(hex_argument)
|
||||||
|
(ipv4_argument)
|
||||||
|
] @attribute
|
||||||
|
|
||||||
|
(numeric_argument) @constant.numeric
|
||||||
|
|
||||||
|
(index) @tag
|
||||||
|
|
||||||
|
(string_literal_argument) @string
|
||||||
|
|
||||||
|
(string_argument) @constant.character
|
||||||
|
|
||||||
|
(comment) @comment
|
||||||
|
|
||||||
|
(port_comment) @label
|
||||||
|
|
||||||
|
[
|
||||||
|
("[")
|
||||||
|
("]")
|
||||||
|
] @punctuation.bracket
|
Loading…
Reference in New Issue
Block a user