mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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..
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue