chore: query formatting

This commit is contained in:
Pham Huy Hoang 2024-01-06 15:05:50 +09:00 committed by Christian Clason
parent 79975d6557
commit 57a8acf0c4
674 changed files with 18466 additions and 12648 deletions

View file

@ -1,5 +1,4 @@
; fold.scm
[
(comment)
(entry)

View file

@ -1,6 +1,5 @@
; highlights.scm
[
[
"[QueryStringParams]"
"[FormParams]"
"[MultipartFormData]"
@ -13,7 +12,7 @@
(json_key_string)
] @property
[
[
"\\"
(regex_escaped_char)
(quoted_string_escaped_char)
@ -53,7 +52,8 @@
"retry"
"retry-interval"
"retry-max-count"
(variable_option "variable")
(variable_option
"variable")
"verbose"
"very-verbose"
] @constant.builtin
@ -102,17 +102,26 @@
(json_number)
] @number.float
[ ":" "," ] @punctuation.delimiter
[
":"
","
] @punctuation.delimiter
[ "[" "]" "{" "}" "{{" "}}" ] @punctuation.bracket
[
"["
"]"
"{"
"}"
"{{"
"}}"
] @punctuation.bracket
[
[
(value_string)
(quoted_string)
(json_string)
] @string
[
"base64,"
"hex,"
@ -133,4 +142,3 @@
(filter) @attribute
(method) @type.builtin

View file

@ -1,5 +1,4 @@
; indents.scm
[
(json_object)
(json_array)
@ -11,4 +10,5 @@
] @indent.branch
(xml_tag) @indent.begin
(xml_close_tag) @indent.branch

View file

@ -1,9 +1,9 @@
; injections.scm
((json_value) @injection.content
(#set! injection.language "json"))
(#set! injection.language "json"))
((xml) @injection.content
(#set! injection.language "xml"))
(#set! injection.language "xml"))
(multiline_string
(multiline_string_type) @_lang