mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
feat: add ssh config
This commit is contained in:
parent
6f3f89a6dd
commit
c0f4363b72
6 changed files with 121 additions and 0 deletions
81
queries/ssh_config/highlights.scm
Normal file
81
queries/ssh_config/highlights.scm
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
; Literals
|
||||
|
||||
(string) @string
|
||||
|
||||
(pattern) @string.regex
|
||||
|
||||
(token) @character
|
||||
|
||||
[
|
||||
(number)
|
||||
(bytes)
|
||||
(time)
|
||||
] @number
|
||||
|
||||
[
|
||||
(kex)
|
||||
(mac)
|
||||
(cipher)
|
||||
(key_sig)
|
||||
] @parameter
|
||||
|
||||
[
|
||||
; generic
|
||||
"yes" "no"
|
||||
"ask" "auto"
|
||||
"none" "any"
|
||||
; ControlMaster
|
||||
"autoask"
|
||||
; FingerprintHash
|
||||
"md5" "sha256"
|
||||
; PubkeyAuthentication
|
||||
"unbound" "host-bound"
|
||||
; RequestTTY
|
||||
"force"
|
||||
; SessionType
|
||||
"subsystem" "default"
|
||||
; StrictHostKeyChecking
|
||||
"accept-new" "off"
|
||||
; Tunnel
|
||||
"point-to-point" "ethernet"
|
||||
(ipqos)
|
||||
(verbosity)
|
||||
(facility)
|
||||
(authentication)
|
||||
] @constant.builtin
|
||||
|
||||
(uri) @text.uri
|
||||
|
||||
; Keywords
|
||||
|
||||
[ "Host" "Match" ] @keyword
|
||||
|
||||
(parameter keyword: _ @keyword)
|
||||
|
||||
(host_declaration argument: _ @namespace)
|
||||
|
||||
(match_declaration
|
||||
(condition criteria: _ @attribute))
|
||||
|
||||
"all" @attribute
|
||||
|
||||
; Misc
|
||||
|
||||
[
|
||||
"SSH_AUTH_SOCK"
|
||||
(variable)
|
||||
] @constant
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
(ERROR) @error
|
||||
|
||||
; Punctuation
|
||||
|
||||
[ "${" "}" ] @punctuation.special
|
||||
|
||||
[ "\"" "," ":" "@" ] @punctuation.delimiter
|
||||
|
||||
[ "=" "!" "+" "-" "^" ] @operator
|
||||
|
||||
[ "*" "?" ] @character.special
|
||||
Loading…
Add table
Add a link
Reference in a new issue