Closed varnerac closed 6 years ago
Well that's an antlr lexer wrinkle that slipped under the radar... I would have expected the lexer to produce an error instead of silently eating the ?
. Yeah, adding a default lexer rule triggers the expected error. Thanks for the catch.
@varnerac This should be fixed now, but if not, feel free to reopen.
The following pattern passes with the latest version installed via
pip
I don't see where
=?
matches in patterns operator. In our STIX2 Patterns parser, this fails. Our parser has a catch-all pattern at the end that returns anunexpected
token. Maybe that would fix this issue for your ANTLR implementation?