mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
refactor(format): drop extra indentation for field
This commit is contained in:
parent
c28396de30
commit
722617e672
140 changed files with 2146 additions and 2766 deletions
|
|
@ -11,9 +11,8 @@
|
|||
function: (identifier) @function)
|
||||
|
||||
(method_call
|
||||
method:
|
||||
(selector_expression
|
||||
field: (field_identifier) @function))
|
||||
method: (selector_expression
|
||||
field: (field_identifier) @function))
|
||||
|
||||
; Builtin functions
|
||||
(function_call
|
||||
|
|
|
|||
|
|
@ -4,20 +4,18 @@
|
|||
; {{"put" | printf "%s%s" "out" | printf "%q"}}
|
||||
(function_call
|
||||
function: (identifier) @_function
|
||||
arguments:
|
||||
(argument_list
|
||||
.
|
||||
(interpreted_string_literal) @injection.content)
|
||||
arguments: (argument_list
|
||||
.
|
||||
(interpreted_string_literal) @injection.content)
|
||||
(#eq? @_function "printf")
|
||||
(#set! injection.language "printf"))
|
||||
|
||||
; {{ js "var a = 1 + 1" }}
|
||||
(function_call
|
||||
function: (identifier) @_function
|
||||
arguments:
|
||||
(argument_list
|
||||
.
|
||||
(interpreted_string_literal) @injection.content)
|
||||
arguments: (argument_list
|
||||
.
|
||||
(interpreted_string_literal) @injection.content)
|
||||
(#eq? @_function "js")
|
||||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#set! injection.language "javascript"))
|
||||
|
|
@ -25,10 +23,9 @@
|
|||
; {{ html "<h1>hello</h1>" }}
|
||||
(function_call
|
||||
function: (identifier) @_function
|
||||
arguments:
|
||||
(argument_list
|
||||
.
|
||||
(interpreted_string_literal) @injection.content)
|
||||
arguments: (argument_list
|
||||
.
|
||||
(interpreted_string_literal) @injection.content)
|
||||
(#eq? @_function "html")
|
||||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#set! injection.language "html"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue