I’m trying to get a regex to work with my key binding. Specifically, I’m trying to match any block comments. I’ve gotten the following to work matching the full scope, but I can’t seem to get it to work using regex_contains
so that I can just match “comment.block”. Help?
, {
"keys" : "enter"]
, "command" : "insert_snippet"
, "args" : {"contents": "\n* "}
, "context" :
{ "key" : "selector", "operator": "equal", "operand": "source.js comment.block.documentation.js" }
]
}