feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent 310f0925ec
commit 692b051b09
1247 changed files with 6096 additions and 9074 deletions

View file

@ -0,0 +1,4 @@
[
(host_declaration)
(match_declaration)
] @fold

View file

@ -0,0 +1,108 @@
; Literals
(string) @string
(pattern) @string.regexp
(token) @character
[
(number)
(bytes)
(time)
] @number
[
(kex)
(mac)
(cipher)
(key_sig)
] @variable.parameter
[
; generic
"yes"
"no"
"ask"
"auto"
"none"
"any"
; CanonicalizeHostname
"always"
; 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) @string.special.url
; Keywords
[
"Host"
"Match"
] @keyword
(parameter
keyword: _ @keyword)
(host_declaration
argument: _ @module)
(match_declaration
(condition
criteria: _ @attribute))
"all" @attribute
; Misc
[
"SSH_AUTH_SOCK"
(variable)
] @constant
(comment) @comment @spell
; Punctuation
[
"${"
"}"
] @punctuation.special
[
"\""
","
":"
"@"
] @punctuation.delimiter
[
"="
"!"
"+"
"-"
"^"
] @operator
[
"*"
"?"
] @character.special

View file

@ -0,0 +1,12 @@
[
(host_declaration)
(match_declaration)
] @indent.begin
; incomplete declarations
(ERROR
.
[
"Host"
"Match"
]) @indent.begin

View file

@ -0,0 +1,17 @@
((comment) @injection.content
(#set! injection.language "comment"))
((condition
criteria: "exec"
argument: (string) @injection.content)
(#set! injection.language "bash"))
((parameter
keyword: [
"KnownHostsCommand"
"LocalCommand"
"RemoteCommand"
"ProxyCommand"
]
argument: (string) @injection.content)
(#set! injection.language "bash"))

View file

@ -0,0 +1,7 @@
(parameter
keyword: "Tag"
argument: (string) @local.reference)
(condition
criteria: "tagged"
argument: (pattern) @local.definition)