Here’s a minimal repro for what I’m seeing:
contexts:
prototype:
- include: comment
main:
- include: expression
comment:
- match: '{-#'
push:
- match: '#-}'
pop: true
- include: expression
- match: --.*
scope: comment
expression:
- match: '\('
push:
- match: '\)'
pop: true
for a test file
-- asdf1
(
-- asdf2
)
Both of the -- lines should be comments, but with the above syntax definition, the asdf2 comment is not a comment. It seems like because the expression context is included in a subcontext of the comment context, it disables the prototype even though the match that includes the context is never triggered.
Is this expected behavior? I don’t see anything mentioned this in the docs. If so, is there any way I can disable this behavior?