mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-11 07:50:07 -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
|
|
@ -10,19 +10,17 @@
|
|||
|
||||
((method_invocation
|
||||
name: (identifier) @_method
|
||||
arguments:
|
||||
(argument_list
|
||||
arguments: (argument_list
|
||||
.
|
||||
(string_literal
|
||||
.
|
||||
(string_literal
|
||||
.
|
||||
(_) @injection.content)))
|
||||
(_) @injection.content)))
|
||||
(#any-of? @_method "format" "printf")
|
||||
(#set! injection.language "printf"))
|
||||
|
||||
((method_invocation
|
||||
object:
|
||||
(string_literal
|
||||
(string_fragment) @injection.content)
|
||||
object: (string_literal
|
||||
(string_fragment) @injection.content)
|
||||
name: (identifier) @_method)
|
||||
(#eq? @_method "formatted")
|
||||
(#set! injection.language "printf"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue