diff options
| author | antosha417 <anton.kavalkou@gmail.com> | 2022-01-15 16:35:55 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-16 14:59:39 +0100 |
| commit | 317f5c7471680b4b30b495cf15b80d7bd0299338 (patch) | |
| tree | 535d0d1630667fae86c0a133c6d14e2143676e6d /queries/hocon | |
| parent | highlight(swift): add upstream queries (diff) | |
| download | nvim-treesitter-317f5c7471680b4b30b495cf15b80d7bd0299338.tar nvim-treesitter-317f5c7471680b4b30b495cf15b80d7bd0299338.tar.gz nvim-treesitter-317f5c7471680b4b30b495cf15b80d7bd0299338.tar.bz2 nvim-treesitter-317f5c7471680b4b30b495cf15b80d7bd0299338.tar.lz nvim-treesitter-317f5c7471680b4b30b495cf15b80d7bd0299338.tar.xz nvim-treesitter-317f5c7471680b4b30b495cf15b80d7bd0299338.tar.zst nvim-treesitter-317f5c7471680b4b30b495cf15b80d7bd0299338.zip | |
add hocon
Diffstat (limited to 'queries/hocon')
| -rw-r--r-- | queries/hocon/highlights.scm | 37 | ||||
| -rw-r--r-- | queries/hocon/injections.scm | 1 |
2 files changed, 38 insertions, 0 deletions
diff --git a/queries/hocon/highlights.scm b/queries/hocon/highlights.scm new file mode 100644 index 000000000..3fb8249a9 --- /dev/null +++ b/queries/hocon/highlights.scm @@ -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) + diff --git a/queries/hocon/injections.scm b/queries/hocon/injections.scm new file mode 100644 index 000000000..4bb7d675d --- /dev/null +++ b/queries/hocon/injections.scm @@ -0,0 +1 @@ +(comment) @comment |
