mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 23:40:04 -04:00
feat: add cpon
This commit is contained in:
parent
853b1ab39a
commit
c38646edf2
8 changed files with 93 additions and 0 deletions
5
queries/cpon/folds.scm
Normal file
5
queries/cpon/folds.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
(meta_map)
|
||||
(map)
|
||||
(array)
|
||||
] @fold
|
||||
45
queries/cpon/highlights.scm
Normal file
45
queries/cpon/highlights.scm
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
; Literals
|
||||
|
||||
(string) @string
|
||||
(escape_sequence) @string.escape
|
||||
|
||||
(hex_blob
|
||||
"x" @character.special
|
||||
(_) @string)
|
||||
|
||||
(esc_blob
|
||||
"b" @character.special
|
||||
(_) @string)
|
||||
|
||||
(datetime
|
||||
"d" @character.special
|
||||
(_) @string.special)
|
||||
|
||||
(number) @number
|
||||
|
||||
(float) @float
|
||||
|
||||
(boolean) @boolean
|
||||
|
||||
(null) @constant.builtin
|
||||
|
||||
; Punctuation
|
||||
|
||||
[
|
||||
","
|
||||
":"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[ "{" "}" ] @punctuation.bracket
|
||||
|
||||
[ "[" "]" ] @punctuation.bracket
|
||||
|
||||
[ "<" ">" ] @punctuation.bracket
|
||||
|
||||
; Comments
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
; Errors
|
||||
|
||||
(ERROR) @error
|
||||
23
queries/cpon/indents.scm
Normal file
23
queries/cpon/indents.scm
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
[
|
||||
(meta_map)
|
||||
(map)
|
||||
(imap)
|
||||
(array)
|
||||
] @indent
|
||||
|
||||
[
|
||||
"]"
|
||||
"}"
|
||||
">"
|
||||
] @indent_end
|
||||
|
||||
[ "{" "}" ] @branch
|
||||
|
||||
[ "[" "]" ] @branch
|
||||
|
||||
[ "<" ">" ] @branch
|
||||
|
||||
[
|
||||
(ERROR)
|
||||
(comment)
|
||||
] @auto
|
||||
1
queries/cpon/injections.scm
Normal file
1
queries/cpon/injections.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(comment) @comment
|
||||
7
queries/cpon/locals.scm
Normal file
7
queries/cpon/locals.scm
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[
|
||||
(document)
|
||||
|
||||
(meta_map)
|
||||
(map)
|
||||
(array)
|
||||
] @scope
|
||||
Loading…
Add table
Add a link
Reference in a new issue