mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -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
|
|
@ -170,12 +170,11 @@
|
|||
"trap" "type" "typeset" "ulimit" "umask" "unalias" "wait"))
|
||||
|
||||
(command
|
||||
argument:
|
||||
[
|
||||
(word) @variable.parameter
|
||||
(concatenation
|
||||
(word) @variable.parameter)
|
||||
])
|
||||
argument: [
|
||||
(word) @variable.parameter
|
||||
(concatenation
|
||||
(word) @variable.parameter)
|
||||
])
|
||||
|
||||
(number) @number
|
||||
|
||||
|
|
|
|||
|
|
@ -13,11 +13,10 @@
|
|||
((command
|
||||
name: (command_name) @_command
|
||||
.
|
||||
argument:
|
||||
[
|
||||
(string)
|
||||
(raw_string)
|
||||
] @injection.content)
|
||||
argument: [
|
||||
(string)
|
||||
(raw_string)
|
||||
] @injection.content)
|
||||
(#eq? @_command "printf")
|
||||
(#set! injection.language "printf"))
|
||||
|
||||
|
|
@ -28,11 +27,10 @@
|
|||
.
|
||||
(_)
|
||||
.
|
||||
argument:
|
||||
[
|
||||
(string)
|
||||
(raw_string)
|
||||
] @injection.content)
|
||||
argument: [
|
||||
(string)
|
||||
(raw_string)
|
||||
] @injection.content)
|
||||
(#eq? @_command "printf")
|
||||
(#eq? @_arg "-v")
|
||||
(#set! injection.language "printf"))
|
||||
|
|
@ -42,11 +40,10 @@
|
|||
name: (command_name) @_command
|
||||
argument: (word) @_arg
|
||||
.
|
||||
argument:
|
||||
[
|
||||
(string)
|
||||
(raw_string)
|
||||
] @injection.content)
|
||||
argument: [
|
||||
(string)
|
||||
(raw_string)
|
||||
] @injection.content)
|
||||
(#eq? @_command "printf")
|
||||
(#eq? @_arg "--")
|
||||
(#set! injection.language "printf"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue