|
37 | 37 | { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double - punctuation.definition.string.end", "match_all": true } |
38 | 38 | ] |
39 | 39 | }, |
40 | | - // r# will expand to r#""# |
| 40 | + // r#" will expand to r#""# |
41 | 41 | // Additional # characters will be duplicated on both sides. |
42 | | - { "keys": ["#"], "command": "insert_snippet", "args": {"contents": "#$1\"$0\"${1/[^#]/$1/}#"}, "context": |
| 42 | + { "keys": ["\""], "command": "insert_snippet", "args": {"contents": "\"$0\"${TM_CURRENT_WORD/[^#]/$1/}"}, "context": |
43 | 43 | [ |
44 | 44 | { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, |
45 | 45 | { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, |
46 | 46 | { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true }, |
47 | | - { "key": "preceding_text", "operator": "regex_contains", "operand": "r$", "match_all": true }, |
| 47 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "r#+$", "match_all": true }, |
48 | 48 | { "key": "selector", "operator": "equal", "operand": "source.rust" }, |
49 | 49 | { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double - punctuation.definition.string.end", "match_all": true } |
50 | 50 | ] |
|
0 commit comments