cti-stix2-json-schemas
cti-stix2-json-schemas copied to clipboard
Missing syntax in pattern grammar
The pattern grammar implementation seems to differ from the specification.
The spec states:
A Comparison Operator MAY be preceded by the modifier NOT, in which case the resultant Comparison Expression is logically negated.
yet NOT is supported for all comparison operators, except the EXISTS
syntax. This was probably a mistake when EXISTS
was introduced in stix 2.1, and thus maybe the sentence about NOT
was not considered.
I've made a PR to fix this so the ANTLR grammar is consistent with the spec.
#156