17
17
{ "key" : " selector" , "operator" : " equal" , "operand" : " source.nim" },
18
18
{ "key" : " selector" , "operator" : " equal" , "operand" : " source.nims" }
19
19
]
20
+ },
21
+
22
+ // Doc-comment completion
23
+ { "keys" : [" enter" ], "command" : " insert_snippet" , "args" : {"contents" : " \n ## $0" }, "context" :
24
+ [
25
+ { "key" : " setting.doccontinue.enabled" , "operand" : true },
26
+ { "key" : " selection_empty" , "operand" : true },
27
+ { "key" : " selector" , "operand" : " comment.line.number-sign.doc-comment.nim" }
28
+ ]
29
+ },
30
+ { "keys" : [" enter" ], "command" : " insert_snippet" , "args" : {"contents" : " \n ## $0" }, "context" :
31
+ [
32
+ { "key" : " setting.doccontinue.enabled" , "operand" : true },
33
+ { "key" : " setting.doccontinue.autostop" , "operand" : false },
34
+ { "key" : " selector" , "operand" : " comment.line.number-sign.doc-comment.empty.nim" }
35
+ ]
36
+ },
37
+
38
+ // Multi-line doc-comment completion
39
+ { "keys" : [" [" ], "command" : " insert_snippet" , "args" : {"contents" : " [ $0 ]#" }, "context" :
40
+ [
41
+ { "key" : " selector" , "operator" :" equal" , "operand" : " punctuation.definition.comment.nim" }
42
+ ]
43
+ },
44
+
45
+ // Pragma completion
46
+ { "keys" : [" ." ], "command" : " insert_snippet" , "args" : {"contents" : " .$0." }, "context" :
47
+ [
48
+ { "key" : " selector" , "operand" : " source.nim" },
49
+ { "key" : " preceding_text" , "operator" : " regex_contains" , "operand" : " {$" },
50
+ { "key" : " following_text" , "operator" : " regex_contains" , "operand" : " ^}" }
51
+ ]
20
52
}
21
- ]
53
+ ]
0 commit comments