mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
feat: add language support for corn (#4864)
Adds queries and a parser mapping for the [Corn](https://github.com/jakestanger/corn) configuration language.
This commit is contained in:
parent
e23d5493cf
commit
dc38ff85d9
5 changed files with 65 additions and 0 deletions
22
queries/corn/highlights.scm
Normal file
22
queries/corn/highlights.scm
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
"let" @keyword
|
||||
"in" @keyword
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
"." @punctuation.delimiter
|
||||
|
||||
(input) @constant
|
||||
(comment) @comment
|
||||
|
||||
(string) @string
|
||||
(integer) @number
|
||||
(float) @float
|
||||
(boolean) @boolean
|
||||
(null) @keyword
|
||||
|
||||
(ERROR) @error
|
||||
Loading…
Add table
Add a link
Reference in a new issue