It is a bit trickier since weâre in JSON; you have to escape the quote (because the whole string is in double quotes), and then you have to escape the escape. Thus:
"regex_contains", "operand": "^(?:\t| |\\)|]|;|\\}|\\\"|$)"
Full key binding:
[code]// Auto-pair brackets
{ âkeysâ: â(â], âcommandâ: âinsert_snippetâ, âargsâ: {âcontentsâ: â($0)â}, âcontextâ:
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|;|\\}|\\\"|$)", "match_all": true }
]
},[/code]
You may want to put that in your Key Bindings â User so you donât lose the setting on update.