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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue