feat: add a tree-sitter grammar and highlights for dunst's config (#13458)

pull/11787/head
Rotem Horesh 2025-05-05 17:08:33 +03:00 committed by GitHub
parent 46cb177792
commit cbac427383
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 25 additions and 0 deletions

View File

@ -46,6 +46,7 @@
| dot | ✓ | | | `dot-language-server` | | dot | ✓ | | | `dot-language-server` |
| dtd | ✓ | | | | | dtd | ✓ | | | |
| dune | ✓ | | | | | dune | ✓ | | | |
| dunstrc | ✓ | | | |
| earthfile | ✓ | ✓ | ✓ | `earthlyls` | | earthfile | ✓ | ✓ | ✓ | `earthlyls` |
| edoc | ✓ | | | | | edoc | ✓ | | | |
| eex | ✓ | | | | | eex | ✓ | | | |

View File

@ -4339,3 +4339,13 @@ indent = { tab-width = 2, unit = " " }
[[grammar]] [[grammar]]
name = "pug" name = "pug"
source = { git = "https://github.com/zealot128/tree-sitter-pug", rev = "13e9195370172c86a8b88184cc358b23b677cc46" } source = { git = "https://github.com/zealot128/tree-sitter-pug", rev = "13e9195370172c86a8b88184cc358b23b677cc46" }
[[language]]
name = "dunstrc"
scope = "source.dunstrc"
comment-tokens = ["#", ";"]
file-types = [ { glob = "dunst/dunstrc" } ]
[[grammar]]
name = "dunstrc"
source = { git = "https://github.com/rotmh/tree-sitter-dunstrc", rev = "9cb9d5cc51cf5e2a47bb2a0e2f2e519ff11c1431" }

View File

@ -0,0 +1,14 @@
(assign
(key) @attribute)
(comment) @comment.line
[
"["
"]"
] @punctuation.bracket
"=" @operator
(section
(name) @namespace)