mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
Support hjson
This commit is contained in:
parent
5fa6e27427
commit
d5e87dde10
7 changed files with 32 additions and 0 deletions
1
ftdetect/hjson.vim
Normal file
1
ftdetect/hjson.vim
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
autocmd BufNewFile,BufRead *.hjson set filetype=hjson
|
||||||
|
|
@ -720,6 +720,15 @@ list.pioasm = {
|
||||||
maintainers = { "@leo60228" },
|
maintainers = { "@leo60228" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.hjson = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/winston0410/tree-sitter-hjson",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
generate_requires_npm = true,
|
||||||
|
},
|
||||||
|
maintainers = { "@winston0410" },
|
||||||
|
}
|
||||||
|
|
||||||
local M = {
|
local M = {
|
||||||
list = list,
|
list = list,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1
queries/hjson/folds.scm
Normal file
1
queries/hjson/folds.scm
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
; inherits: json
|
||||||
16
queries/hjson/highlights.scm
Normal file
16
queries/hjson/highlights.scm
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
(true) @boolean
|
||||||
|
(false) @boolean
|
||||||
|
(null) @constant.builtin
|
||||||
|
(number) @number
|
||||||
|
(pair key: (string) @label)
|
||||||
|
(pair value: (string) @string)
|
||||||
|
(array (string) @string)
|
||||||
|
; (string_content (escape_sequence) @string.escape)
|
||||||
|
(ERROR) @error
|
||||||
|
; "," @punctuation.delimiter
|
||||||
|
"[" @punctuation.bracket
|
||||||
|
"]" @punctuation.bracket
|
||||||
|
"{" @punctuation.bracket
|
||||||
|
"}" @punctuation.bracket
|
||||||
|
|
||||||
|
(comment) @comment
|
||||||
3
queries/hjson/indents.scm
Normal file
3
queries/hjson/indents.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
; inherits: json
|
||||||
|
|
||||||
|
(comment) @ignore
|
||||||
1
queries/hjson/injections.scm
Normal file
1
queries/hjson/injections.scm
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
(comment) @comment
|
||||||
1
queries/hjson/locals.scm
Normal file
1
queries/hjson/locals.scm
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
; inherits: json
|
||||||
Loading…
Add table
Add a link
Reference in a new issue