diff options
author | Jaden | 2022-10-29 15:33:23 +0000 |
---|---|---|
committer | GitHub | 2022-10-29 15:33:23 +0000 |
commit | b5e7501935472f4e68bf42ac9759d54688ccb5e6 (patch) | |
tree | 720e8d8d23f23658377ff514c156c4a7b29bf2f7 /runtime/queries/kdl/highlights.scm | |
parent | 5e256e4a98561c2085b1ecae1e39e27bf3744724 (diff) |
feat(lang): add kdl grammar (#4481)
Diffstat (limited to 'runtime/queries/kdl/highlights.scm')
-rw-r--r-- | runtime/queries/kdl/highlights.scm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/runtime/queries/kdl/highlights.scm b/runtime/queries/kdl/highlights.scm new file mode 100644 index 00000000..d83bde19 --- /dev/null +++ b/runtime/queries/kdl/highlights.scm @@ -0,0 +1,22 @@ +(comment) @comment +(single_line_comment) @comment + +(node + name: (identifier) @function) +(prop (identifier) @attribute) +(type) @type + +(bare_identifier) @variable.other.member + +(keyword) @keyword + +(string) @string +(number) @constant.numeric +(boolean) @constant.builtin.boolean + +"." @punctuation.delimiter + +"=" @operator + +"{" @punctuation.bracket +"}" @punctuation.bracket |