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

@ -98,11 +98,10 @@
; Commands
(command
argument:
[
(word) @variable.parameter
(#lua-match? @variable.parameter "^[-]")
])
argument: [
(word) @variable.parameter
(#lua-match? @variable.parameter "^[-]")
])
(command_substitution
"$" @punctuation.bracket)
@ -113,15 +112,14 @@
; derived from builtin -n (fish 3.2.2)
(command
name:
[
(word) @function.builtin
(#any-of? @function.builtin
"." ":" "_" "alias" "argparse" "bg" "bind" "block" "breakpoint" "builtin" "cd" "command"
"commandline" "complete" "contains" "count" "disown" "echo" "emit" "eval" "exec" "exit" "fg"
"functions" "history" "isatty" "jobs" "math" "printf" "pwd" "random" "read" "realpath" "set"
"set_color" "source" "status" "string" "test" "time" "type" "ulimit" "wait")
])
name: [
(word) @function.builtin
(#any-of? @function.builtin
"." ":" "_" "alias" "argparse" "bg" "bind" "block" "breakpoint" "builtin" "cd" "command"
"commandline" "complete" "contains" "count" "disown" "echo" "emit" "eval" "exec" "exit" "fg"
"functions" "history" "isatty" "jobs" "math" "printf" "pwd" "random" "read" "realpath" "set"
"set_color" "source" "status" "string" "test" "time" "type" "ulimit" "wait")
])
; Functions
(function_definition
@ -131,19 +129,17 @@
] @keyword.function)
(function_definition
name:
[
(word)
(concatenation)
] @function)
name: [
(word)
(concatenation)
] @function)
(function_definition
option:
[
(word)
(concatenation
(word))
] @variable.parameter
option: [
(word)
(concatenation
(word))
] @variable.parameter
(#lua-match? @variable.parameter "^[-]"))
; Strings