mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,6 +1,6 @@
|
|||
; highlights.scm
|
||||
[
|
||||
(import)
|
||||
(import)
|
||||
(package)
|
||||
] @keyword.import
|
||||
|
||||
|
|
@ -35,17 +35,26 @@
|
|||
(raw_string)
|
||||
] @string
|
||||
|
||||
(term (ref (var))) @variable
|
||||
(term
|
||||
(ref
|
||||
(var))) @variable
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
(number) @number
|
||||
|
||||
(expr_call func_name: (fn_name (var) @function .))
|
||||
(expr_call
|
||||
func_name:
|
||||
(fn_name
|
||||
(var) @function .))
|
||||
|
||||
(expr_call func_arguments: (fn_args (expr) @variable.parameter))
|
||||
(expr_call
|
||||
func_arguments:
|
||||
(fn_args
|
||||
(expr) @variable.parameter))
|
||||
|
||||
(rule_args (term) @variable.parameter)
|
||||
(rule_args
|
||||
(term) @variable.parameter)
|
||||
|
||||
[
|
||||
(open_paren)
|
||||
|
|
@ -56,9 +65,22 @@
|
|||
(close_curly)
|
||||
] @punctuation.bracket
|
||||
|
||||
(rule (rule_head (var) @function.method))
|
||||
(rule
|
||||
(rule_head
|
||||
(var) @function.method))
|
||||
|
||||
(rule
|
||||
(rule_head (term (ref (var) @module)))
|
||||
(rule_body (query (literal (expr (expr_infix (expr (term (ref (var)) @_output)))))) (#eq? @_output @module))
|
||||
)
|
||||
(rule
|
||||
(rule_head
|
||||
(term
|
||||
(ref
|
||||
(var) @module)))
|
||||
(rule_body
|
||||
(query
|
||||
(literal
|
||||
(expr
|
||||
(expr_infix
|
||||
(expr
|
||||
(term
|
||||
(ref
|
||||
(var)) @_output))))))
|
||||
(#eq? @_output @module)))
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
(#set! injection.language "comment"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue