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,29 +1,24 @@
; Keywords
(scheme) @keyword
; Methods
(method) @function.method
; Constants
(const_spec) @constant
; Variables
(identifier) @variable
; Fields
(pair name: (identifier) @variable.member)
(pair
name: (identifier) @variable.member)
; Parameters
(query_param (key) @variable.parameter)
(query_param
(key) @variable.parameter)
; Operators
[
"="
"?"
@ -32,7 +27,6 @@
] @operator
; Literals
(string) @string
(target_url) @string.special.url
@ -40,17 +34,15 @@
(number) @number
; (boolean) @boolean
(null) @constant.builtin
; Punctuation
[ "{{" "}}" ] @punctuation.bracket
[
":"
] @punctuation.delimiter
"{{"
"}}"
] @punctuation.bracket
":" @punctuation.delimiter
; Comments
(comment) @comment @spell

View file

@ -1,11 +1,11 @@
((comment) @injection.content
(#set! injection.language "comment"))
((comment) @injection.content
(#set! injection.language "comment"))
((json_body) @injection.content
(#set! injection.language "json"))
(#set! injection.language "json"))
((xml_body) @injection.content
(#set! injection.language "xml"))
(#set! injection.language "xml"))
; ((graphql_body) @injection.content
; ((graphql_body) @injection.content
; (#set! injection.language "graphql")) ; Not used as of now..