Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--book/src/generated/lang-support.md1
-rw-r--r--languages.toml10
-rw-r--r--runtime/queries/dunstrc/highlights.scm14
3 files changed, 25 insertions, 0 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 8502f5db..5b2962a4 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -46,6 +46,7 @@
| dot | ✓ | | | `dot-language-server` |
| dtd | ✓ | | | |
| dune | ✓ | | | |
+| dunstrc | ✓ | | | |
| earthfile | ✓ | ✓ | ✓ | `earthlyls` |
| edoc | ✓ | | | |
| eex | ✓ | | | |
diff --git a/languages.toml b/languages.toml
index f4ddccef..13f70db4 100644
--- a/languages.toml
+++ b/languages.toml
@@ -4339,3 +4339,13 @@ indent = { tab-width = 2, unit = " " }
[[grammar]]
name = "pug"
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" }
diff --git a/runtime/queries/dunstrc/highlights.scm b/runtime/queries/dunstrc/highlights.scm
new file mode 100644
index 00000000..8964b43d
--- /dev/null
+++ b/runtime/queries/dunstrc/highlights.scm
@@ -0,0 +1,14 @@
+(assign
+ (key) @attribute)
+
+(comment) @comment.line
+
+[
+ "["
+ "]"
+] @punctuation.bracket
+
+"=" @operator
+
+(section
+ (name) @namespace)