mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
add hocon
This commit is contained in:
parent
f3e554ed7b
commit
317f5c7471
3 changed files with 47 additions and 0 deletions
|
|
@ -802,6 +802,15 @@ list.hjson = {
|
||||||
maintainers = { "@winston0410" },
|
maintainers = { "@winston0410" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.hocon = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/antosha417/tree-sitter-hocon",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
generate_requires_npm = true,
|
||||||
|
},
|
||||||
|
maintainers = { "@antosha417" },
|
||||||
|
}
|
||||||
|
|
||||||
list.llvm = {
|
list.llvm = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/benwilliamgraham/tree-sitter-llvm",
|
url = "https://github.com/benwilliamgraham/tree-sitter-llvm",
|
||||||
|
|
|
||||||
37
queries/hocon/highlights.scm
Normal file
37
queries/hocon/highlights.scm
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
(comment) @comment
|
||||||
|
|
||||||
|
(null) @constant.builtin
|
||||||
|
[ (true) (false) ] @boolean
|
||||||
|
(number) @number
|
||||||
|
(unit) @keyword
|
||||||
|
(string) @string
|
||||||
|
(multiline_string) @string
|
||||||
|
(string (escape_sequence) @string.escape)
|
||||||
|
(unquoted_string) @string
|
||||||
|
|
||||||
|
[ "url"
|
||||||
|
"file"
|
||||||
|
"classpath"
|
||||||
|
"required"
|
||||||
|
] @keyword
|
||||||
|
|
||||||
|
(include "include" @include)
|
||||||
|
|
||||||
|
(substitution ["${" "${?" "}"] @punctuation.special)
|
||||||
|
(substitution (_) @field)
|
||||||
|
|
||||||
|
(path (_) @field)
|
||||||
|
(value [":" "=" "+=" ] @operator)
|
||||||
|
|
||||||
|
[
|
||||||
|
"("
|
||||||
|
")"
|
||||||
|
"["
|
||||||
|
"]"
|
||||||
|
"{"
|
||||||
|
"}"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
[ "," ] @punctuation.delimiter
|
||||||
|
(unquoted_path "." @punctuation.delimiter)
|
||||||
|
|
||||||
1
queries/hocon/injections.scm
Normal file
1
queries/hocon/injections.scm
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
(comment) @comment
|
||||||
Loading…
Add table
Add a link
Reference in a new issue