mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-18 01:39:00 +00:00
Support hjson
This commit is contained in:
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" },
|
||||
}
|
||||
|
||||
list.hjson = {
|
||||
install_info = {
|
||||
url = "https://github.com/winston0410/tree-sitter-hjson",
|
||||
files = { "src/parser.c" },
|
||||
generate_requires_npm = true,
|
||||
},
|
||||
maintainers = { "@winston0410" },
|
||||
}
|
||||
|
||||
local M = {
|
||||
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
|
||||
Reference in New Issue
Block a user