In my grammar I have this rule:
MATCHING_EXPRESSION = {
RANGE_EXPRESSION ~ (MATCHING_OPERATOR ~ #pattern = MATCHING_EXPRESSION_PATTERN)?
}
For the expression 'test' matches , that is one with a missing pattern, we get:
|
1 | 'test' matches
| ^---
|
= expected DELETE_EXPRESSION
If the tag was leveraged we could instead get:
|
1 | 'test' matches
| ^---
|
= expected pattern