[ { "keys": ["tab"], "command": "chain", "args": { "commands": [ ["expand_abbreviation_by_tab"], ["reg_replace", {"replacements": ["js_class", "js_quotes"]}] ] }, "context": [ {"operand": "source.js", "operator": "equal", "match_all": true, "key": "selector"}, {"key": "preceding_text", "operator": "regex_contains", "operand": "(\\w+>\\w+|\\s(\\.?|a|div|span|p|button)\\.\\w+)", "match_all": true}, {"key": "selection_empty", "operator": "equal", "operand": true, "match_all": true} ] } ]