refactor(format): drop extra indentation for field

This commit is contained in:
Phạm Huy Hoàng 2024-03-21 20:44:35 +09:00 committed by Christian Clason
parent c28396de30
commit 722617e672
140 changed files with 2146 additions and 2766 deletions

View file

@ -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

View file

@ -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"))