Sublime Forum

Snippets/completions with limited regex support in triggers

#1

Currently, completions and snippets only support literal text for their triggers (afaik). Adding support for custom languages would be sped up if we could use some form of regexes there instead for wxample, say a custom language have a relatively big set of kwywords which are followed by a syntactical structure , say

KEYWORD [ SOME CODE ] { MORE CODE }
Where KEYWORD could be any of a couple dozens tokens. I’d prefer to handle this with a sibgle snippet with a regex than with a couple dozen different snippets.

0 Likes