forked from sublimehq/Packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Tips & Tricks
deathaxe edited this page Aug 22, 2021
·
2 revisions
If foo
is matched an foo-arguments
context is pushed onto stack.
contexts:
main:
- match: \bfoo\b
push: foo-arguments
foo-arguments:
- meta_scope: meta.foo
- match: $
pop: 1
If foo
is matched an anonymous context is pushed onto stack, which includes foo-arguments
context.
contexts:
main:
- match: \bfoo\b
push:
- include: foo-arguments
foo-arguments:
- meta_scope: meta.foo
- match: $
pop: 1
community