Sublime Forum

Feature Request - Escape for push in sublime syntax

#1

Consider this:

myContext:
  - match: "somePattern"
    push: [ context1, context2, context3 ]
    escape: ";"

Where it would go back to myContext once the escape pattern is found. It is possible to simulate the feature using embed like so:

myContext:
  - match: "somePattern"
    embed: some-pattern
    escape: ";"

some-pattern:
  - match: ""
    push: [ context1, context2, context3 ]
0 Likes

#2

I would rather keep the embed action but change it to accept a list of contexts to push. That keeps the intent clear.

2 Likes

#3

That could work too.

0 Likes