I need to match set export
but not set exported
in my syntax. I have this code:
variables:
boolean_settings: |
(?x)
dotenv-load | export
contexts:
settings-boolean:
- match: '\b{{boolean_settings}}\b'
scope: entity.name.definition.just
push:
- constant-boolean
- assignment-operator
- include: else-pop
However, this doesn’t prevent matches when the settings name is followed by something which is not a word boundary:
I want to use the (?x)
extended form because I have many keywords to match, and ignoring whitespace makes it much easier to read.
How can I combine these? More code available in this GitHub issue.