Skip to content
Discussion options

You must be logged in to vote

Mhhh, if you write a snippet for ^, you could do a choiceNode which chooses between no delimiters and {, } (first example in this section does just that).
Maybe make it auto-triggered, if you don't have a problem with possibly triggering it accidentially.

Even closer to what you want, you could use functionNodes enclosing the text behind the ^ to automatically recognize whether the delimiters are necessary or not, and insert them accordingly. The hard part here is to figure out when the delimiters are necessary (or is it? Maybe just "%d*" already does it?)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@akim-13
Comment options

@akim-13
Comment options

@L3MON4D3
Comment options

Answer selected by akim-13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants