mirror of https://github.com/helix-editor/helix
feat: add a tree-sitter grammar and highlights for dunst's configuration format
parent
aa3fad84ef
commit
c7b284d561
|
@ -46,6 +46,7 @@
|
|||
| dot | ✓ | | | `dot-language-server` |
|
||||
| dtd | ✓ | | | |
|
||||
| dune | ✓ | | | |
|
||||
| dunstrc | ✓ | | | |
|
||||
| earthfile | ✓ | ✓ | ✓ | `earthlyls` |
|
||||
| edoc | ✓ | | | |
|
||||
| eex | ✓ | | | |
|
||||
|
|
|
@ -4313,3 +4313,14 @@ comment-tokens = "#"
|
|||
[[grammar]]
|
||||
name = "debian"
|
||||
source = { git = "https://gitlab.com/MggMuggins/tree-sitter-debian", rev = "9b3f4b78c45aab8a2f25a5f9e7bbc00995bc3dde" }
|
||||
|
||||
[[language]]
|
||||
name = "dunstrc"
|
||||
scope = "source.dunstrc"
|
||||
comment-tokens = ["#", ";"]
|
||||
file-types = [ { glob = "dunst/dunstrc" } ]
|
||||
grammar = "dunstrc"
|
||||
|
||||
[[grammar]]
|
||||
name = "dunstrc"
|
||||
source = { git = "https://github.com/rotmh/tree-sitter-dunstrc", rev = "b2d193553603c41762418d67827883492c9119a3" }
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
(assign
|
||||
(key) @attribute)
|
||||
|
||||
(comment) @comment.line
|
||||
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
"=" @operator
|
||||
|
||||
(section
|
||||
(name) @namespace)
|
Loading…
Reference in New Issue