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/liquidsoap/highlights.scm | |
| 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/liquidsoap/highlights.scm')
| -rw-r--r-- | queries/liquidsoap/highlights.scm | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/queries/liquidsoap/highlights.scm b/queries/liquidsoap/highlights.scm index 45b5abe05..38a386548 100644 --- a/queries/liquidsoap/highlights.scm +++ b/queries/liquidsoap/highlights.scm @@ -1,7 +1,12 @@ (var) @variable (op) @operator -["and" "or" "not"] @keyword.operator + +[ + "and" + "or" + "not" +] @keyword.operator [ "def" @@ -41,7 +46,11 @@ "try_end" ] @keyword.exception -(inline_if [ "?" ":" ] @keyword.conditional.ternary) +(inline_if + [ + "?" + ":" + ] @keyword.conditional.ternary) [ "%ifdef" @@ -57,8 +66,11 @@ (encoder_name) @constant.builtin -(anonymous_argument (var) @variable.parameter) -(labeled_argument label: (var) @variable.parameter) +(anonymous_argument + (var) @variable.parameter) + +(labeled_argument + label: (var) @variable.parameter) "." @punctuation.delimiter @@ -69,17 +81,31 @@ "]" "{" "}" -] @punctuation.bracket +] @punctuation.bracket + +(app + name: (var) @function.call) -(app name: (var) @function.call) (method) @function.method + (method_app) @function.method.call (string) @string -(string_interpolation [ "#{" "}" ] @punctuation.special) + +(string_interpolation + [ + "#{" + "}" + ] @punctuation.special) + (integer) @number + (float) @number.float + (bool) @boolean + (comment) @comment + (regexp) @string.regexp + (type) @type |
