-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDefault.sublime-keymap
More file actions
34 lines (34 loc) · 1.34 KB
/
Default.sublime-keymap
File metadata and controls
34 lines (34 loc) · 1.34 KB
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
[
// Suppress auto-pairing of single quotes.
{
"keys": ["'"],
"command": "insert",
"args": {"characters": "'"},
"context": [{"key": "selector", "operand": "source.forth"}],
},
// More consistent auto-pairing of double quotes.
// Sublime's default is too conservative for Forth.
{
"keys": ["\""],
"command": "insert_snippet",
"args": {"contents": "\"$0\""},
"context": [
{"key": "selector", "operand": "source.forth"},
{"key": "setting.auto_match_enabled", "operator": "equal", "operand": true},
{"key": "selection_empty", "operator": "equal", "operand": true, "match_all": true},
{"key": "following_text", "operator": "not_regex_contains", "operand": "^\"", "match_all": true},
{"key": "preceding_text", "operator": "not_regex_contains", "operand": "\"$", "match_all": true},
],
},
{
"keys": ["primary+shift+;"],
"command": "insert_snippet",
"args": {"contents": ": $0\n;"},
"context": [
{"key": "selector", "operator": "equal", "operand": "source.forth - string - comment"},
{"key": "selection_empty", "operator": "equal", "operand": true, "match_all": true},
{"key": "preceding_text", "operator": "regex_match", "operand": "^", "match_all": true},
{"key": "following_text", "operator": "regex_match", "operand": "$", "match_all": true},
],
},
]