mirror of https://github.com/helix-editor/helix
Add HOCON language support (#9203)
* Add HOCON language support * Remove error query Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Change include query * Fix query error --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>pull/9280/head
parent
f8ae2bc61b
commit
a32d537d0a
@ -0,0 +1,31 @@
|
||||
(comment) @comment
|
||||
|
||||
(null) @constant.builtin
|
||||
[(true) (false)] @constant.builtin.boolean
|
||||
(number) @constant.numeric
|
||||
(string) @string
|
||||
(multiline_string) @string
|
||||
(string (escape_sequence) @constant.character.escape)
|
||||
(unquoted_string) @string
|
||||
|
||||
(value [":" "=" "+=" ] @operator)
|
||||
|
||||
(substitution (_) @string)
|
||||
(substitution ["${" "${?" "}"] @punctuation.special)
|
||||
|
||||
[
|
||||
"url"
|
||||
"file"
|
||||
"classpath"
|
||||
"required"
|
||||
] @function.builtin
|
||||
|
||||
(include) @keyword.directive
|
||||
|
||||
[ "(" ")" "[" "]" "{" "}" ] @punctuation.bracket
|
||||
|
||||
(unit) @keyword
|
||||
(path (_) @keyword)
|
||||
(unquoted_path "." @punctuation.delimiter)
|
||||
[ "," ] @punctuation.delimiter
|
||||
|
@ -0,0 +1,10 @@
|
||||
[
|
||||
(object)
|
||||
(array)
|
||||
] @indent
|
||||
|
||||
[
|
||||
"]"
|
||||
"}"
|
||||
] @outdent
|
||||
|
Loading…
Reference in New Issue