diff options
| author | Pham Huy Hoang <hoangtun0810@gmail.com> | 2024-01-06 15:05:50 +0900 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-01-19 16:58:37 +0100 |
| commit | 57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9 (patch) | |
| tree | 70bf645539882b88e6fa129cefd30986b89bbac3 /queries/hocon | |
| parent | ci: add query lint job (diff) | |
| download | nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.gz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.bz2 nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.lz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.xz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.zst nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.zip | |
chore: query formatting
Diffstat (limited to 'queries/hocon')
| -rw-r--r-- | queries/hocon/highlights.scm | 62 | ||||
| -rw-r--r-- | queries/hocon/injections.scm | 2 |
2 files changed, 46 insertions, 18 deletions
diff --git a/queries/hocon/highlights.scm b/queries/hocon/highlights.scm index f0cc498b4..0eb94e6dd 100644 --- a/queries/hocon/highlights.scm +++ b/queries/hocon/highlights.scm @@ -1,37 +1,65 @@ (comment) @comment @spell (null) @constant.builtin -[ (true) (false) ] @boolean + +[ + (true) + (false) +] @boolean + (number) @number + (unit) @keyword + (string) @string + (multiline_string) @string -(string (escape_sequence) @string.escape) + +(string + (escape_sequence) @string.escape) + (unquoted_string) @string -[ "url" +[ + "url" "file" "classpath" "required" ] @keyword -(include "include" @keyword.import) +(include + "include" @keyword.import) + +(substitution + [ + "${" + "${?" + "}" + ] @punctuation.special) + +(substitution + (_) @variable.member) -(substitution ["${" "${?" "}"] @punctuation.special) -(substitution (_) @variable.member) +(path + (_) @variable.member) -(path (_) @variable.member) -(value [":" "=" "+=" ] @operator) +(value + [ + ":" + "=" + "+=" + ] @operator) [ - "(" - ")" - "[" - "]" - "{" - "}" -] @punctuation.bracket + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket -[ "," ] @punctuation.delimiter -(unquoted_path "." @punctuation.delimiter) +"," @punctuation.delimiter +(unquoted_path + "." @punctuation.delimiter) diff --git a/queries/hocon/injections.scm b/queries/hocon/injections.scm index 321c90add..2f0e58eb6 100644 --- a/queries/hocon/injections.scm +++ b/queries/hocon/injections.scm @@ -1,2 +1,2 @@ ((comment) @injection.content - (#set! injection.language "comment")) + (#set! injection.language "comment")) |
