mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00:09 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,5 +1,4 @@
|
|||
; Literals
|
||||
|
||||
(string) @string
|
||||
|
||||
(pattern) @string.regexp
|
||||
|
|
@ -21,23 +20,31 @@
|
|||
|
||||
[
|
||||
; generic
|
||||
"yes" "no"
|
||||
"ask" "auto"
|
||||
"none" "any"
|
||||
"yes"
|
||||
"no"
|
||||
"ask"
|
||||
"auto"
|
||||
"none"
|
||||
"any"
|
||||
; ControlMaster
|
||||
"autoask"
|
||||
; FingerprintHash
|
||||
"md5" "sha256"
|
||||
"md5"
|
||||
"sha256"
|
||||
; PubkeyAuthentication
|
||||
"unbound" "host-bound"
|
||||
"unbound"
|
||||
"host-bound"
|
||||
; RequestTTY
|
||||
"force"
|
||||
; SessionType
|
||||
"subsystem" "default"
|
||||
"subsystem"
|
||||
"default"
|
||||
; StrictHostKeyChecking
|
||||
"accept-new" "off"
|
||||
"accept-new"
|
||||
"off"
|
||||
; Tunnel
|
||||
"point-to-point" "ethernet"
|
||||
"point-to-point"
|
||||
"ethernet"
|
||||
(ipqos)
|
||||
(verbosity)
|
||||
(facility)
|
||||
|
|
@ -47,20 +54,24 @@
|
|||
(uri) @string.special.url
|
||||
|
||||
; Keywords
|
||||
[
|
||||
"Host"
|
||||
"Match"
|
||||
] @keyword
|
||||
|
||||
[ "Host" "Match" ] @keyword
|
||||
(parameter
|
||||
keyword: _ @keyword)
|
||||
|
||||
(parameter keyword: _ @keyword)
|
||||
|
||||
(host_declaration argument: _ @module)
|
||||
(host_declaration
|
||||
argument: _ @module)
|
||||
|
||||
(match_declaration
|
||||
(condition criteria: _ @attribute))
|
||||
(condition
|
||||
criteria: _ @attribute))
|
||||
|
||||
"all" @attribute
|
||||
|
||||
; Misc
|
||||
|
||||
[
|
||||
"SSH_AUTH_SOCK"
|
||||
(variable)
|
||||
|
|
@ -69,11 +80,27 @@
|
|||
(comment) @comment @spell
|
||||
|
||||
; Punctuation
|
||||
[
|
||||
"${"
|
||||
"}"
|
||||
] @punctuation.special
|
||||
|
||||
[ "${" "}" ] @punctuation.special
|
||||
[
|
||||
"\""
|
||||
","
|
||||
":"
|
||||
"@"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[ "\"" "," ":" "@" ] @punctuation.delimiter
|
||||
[
|
||||
"="
|
||||
"!"
|
||||
"+"
|
||||
"-"
|
||||
"^"
|
||||
] @operator
|
||||
|
||||
[ "=" "!" "+" "-" "^" ] @operator
|
||||
|
||||
[ "*" "?" ] @character.special
|
||||
[
|
||||
"*"
|
||||
"?"
|
||||
] @character.special
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@
|
|||
(host_declaration)
|
||||
(match_declaration)
|
||||
] @indent.begin
|
||||
|
||||
; incomplete declarations
|
||||
(ERROR . [ "Host" "Match" ]) @indent.begin
|
||||
(ERROR
|
||||
.
|
||||
[
|
||||
"Host"
|
||||
"Match"
|
||||
]) @indent.begin
|
||||
|
|
|
|||
|
|
@ -1,17 +1,18 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((condition
|
||||
criteria: "exec"
|
||||
argument: (string) @injection.content)
|
||||
(#set! injection.language "bash"))
|
||||
criteria: "exec"
|
||||
argument: (string) @injection.content)
|
||||
(#set! injection.language "bash"))
|
||||
|
||||
((parameter
|
||||
keyword: [
|
||||
"KnownHostsCommand"
|
||||
"LocalCommand"
|
||||
"RemoteCommand"
|
||||
"ProxyCommand"
|
||||
]
|
||||
argument: (string) @injection.content)
|
||||
(#set! injection.language "bash"))
|
||||
keyword:
|
||||
[
|
||||
"KnownHostsCommand"
|
||||
"LocalCommand"
|
||||
"RemoteCommand"
|
||||
"ProxyCommand"
|
||||
]
|
||||
argument: (string) @injection.content)
|
||||
(#set! injection.language "bash"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue