File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ contexts:
12
12
- include : comments
13
13
- include : host
14
14
- include : match
15
+ - include : naked-options
15
16
16
17
options :
17
18
- include : comments
@@ -42,6 +43,13 @@ contexts:
42
43
scope : meta.mapping.value.ssh_config
43
44
pop : true
44
45
46
+ naked-options :
47
+ - match : (?!^[ \t]*(?i:host|match)\b)
48
+ push :
49
+ - meta_scope : meta.block.naked.ssh_config
50
+ - include : pop-before-next-host
51
+ - include : options
52
+
45
53
# Host
46
54
host :
47
55
- match : ^[ \t]*((?i:host))\b
Original file line number Diff line number Diff line change 1
1
# SYNTAX TEST "Packages/SSH Config/SSH Config.sublime-syntax"
2
2
3
+ #<- meta.block.naked
4
+ User foo
5
+ # ^^^^^^ meta.block.naked
6
+ # ^^ keyword.other
7
+ # ^^^ string.unquoted
8
+ Port 22
9
+ # ^^^^^ meta.block.naked
10
+ # ^^ keyword.other
11
+ # ^^ constant.numeric
12
+ Include ~/.ssh/config_*_cloud
13
+ # ^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.block.naked
14
+ # ^^^^^ keyword.other
15
+ # ^^^^^^^^^^^^^^^^^^^^^ string.unquoted
16
+ # ^ keyword.operator.wildcard
17
+
18
+
3
19
Match Host targ?t_host Exec not_inside_network User sue
20
+ #<- - meta.block.naked
4
21
# ^^^ keyword.control.conditional
5
22
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.statement.conditional
6
23
# ^^^^ keyword.other
You can’t perform that action at this time.
0 commit comments