1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
-- mod-version:3
local syntax = require "core.syntax"
syntax.add {
name = "SSH config",
files = { "sshd?/?_?config$" },
comment = '#',
patterns = {
{ pattern = "#.*\n", type = "comment" },
{ pattern = "%d+", type = "number" },
{ pattern = "[%a_][%w_]*", type = "symbol" },
{ pattern = "@", type = "operator" },
},
symbols = {
-- ssh config
["Host"] = "function",
["ProxyCommand"] = "function",
["HostName"] = "keyword",
["IdentityFile"] = "keyword",
["IdentitiesOnly"] = "keyword",
["User"] = "keyword",
["Port"] = "keyword",
["ForwardAgent"] = "keyword",
["ForwardX11"] = "keyword",
["ForwardX11Trusted"] = "keyword",
["HostbasedAuthentication"] = "keyword",
["GSSAPIAuthentication"] = "keyword",
["GSSAPIDelegateCredentials"] = "keyword",
["GSSAPIKeyExchange"] = "keyword",
["GSSAPITrustDNS"] = "keyword",
["BatchMode"] = "keyword",
["CheckHostIP"] = "keyword",
["AddressFamily"] = "keyword",
["ConnectTimeout"] = "keyword",
["StrictHostKeyChecking"] = "keyword",
["Ciphers"] = "keyword",
["MACs"] = "keyword",
["EscapeChar"] = "keyword",
["Tunnel"] = "keyword",
["TunnelDevice"] = "keyword",
["PermitLocalCommand"] = "keyword",
["VisualHostKey"] = "keyword",
["RekeyLimit"] = "keyword",
["SendEnv"] = "keyword",
["HashKnownHosts"] = "keyword",
["GSSAPIAuthentication"] = "keyword",
-- sshd config
["Subsystem"] = "keyword2",
["yes"] = "literal",
["no"] = "literal",
["any"] = "literal",
["ask"] = "literal",
},
}
|