feat(lang): add kdl grammar (#4481)

pull/4518/head
Jaden 2 years ago committed by GitHub
parent 5e256e4a98
commit b5e7501935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -60,6 +60,7 @@
| jsonnet | ✓ | | | `jsonnet-language-server` |
| jsx | ✓ | ✓ | ✓ | `typescript-language-server` |
| julia | ✓ | | | `julia` |
| kdl | ✓ | | | |
| kotlin | ✓ | | | `kotlin-language-server` |
| latex | ✓ | ✓ | | `texlab` |
| lean | ✓ | | | `lean` |

@ -1885,3 +1885,15 @@ grammar = "vhs"
[[grammar]]
name = "vhs"
source = { git = "https://github.com/charmbracelet/tree-sitter-vhs", rev = "c6d81f34c011c29ee86dd73b45a8ecc9f2e2bdaf" }
[[language]]
name = "kdl"
scope = "source.kdl"
file-types = ["kdl"]
roots = []
comment-token = "//"
injection-regex = "kdl"
[[grammar]]
name = "kdl"
source = { git = "https://github.com/Unoqwy/tree-sitter-kdl", rev = "e1cd292c6d15df6610484e1d4b5c987ecad52373" }

@ -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
Loading…
Cancel
Save