diff options
author | Jaakko Paju | 2024-01-08 02:04:43 +0000 |
---|---|---|
committer | GitHub | 2024-01-08 02:04:43 +0000 |
commit | a32d537d0ab61c29dca556d6ffe35431d9f4f1d1 (patch) | |
tree | addf933a64dc7a644015987ff9d939dfc5dfedc6 /runtime/queries/hocon/highlights.scm | |
parent | f8ae2bc61b0fee8b2820c07f10f25ee23c13af7f (diff) |
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>
Diffstat (limited to 'runtime/queries/hocon/highlights.scm')
-rw-r--r-- | runtime/queries/hocon/highlights.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/runtime/queries/hocon/highlights.scm b/runtime/queries/hocon/highlights.scm new file mode 100644 index 00000000..d1aa38a2 --- /dev/null +++ b/runtime/queries/hocon/highlights.scm @@ -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 + |