antlr / grammars-v4

Grammars written for ANTLR v4; expectation that the grammars are free of actions.
MIT License
10.25k stars 3.72k forks source link

Errors in XPath #3402

Closed slavonnet closed 1 year ago

slavonnet commented 1 year ago

https://github.com/antlr/grammars-v4/blob/494877cd60faf13342fbb5ba1d7e76534b61a895/xpath/xpath31/XPath31.g4#LL341C32-L341C32

inn spec double quote for {EscapeApos }and [^'] in regexp in file one quote '\' and regexp dows not gave NOT [']

[116]       StringLiteral      ::=      ('"' (EscapeQuot | [^"])* '"') | ("'" (EscapeApos | [^'])* "'") /* ws: explicit */
[119]       EscapeQuot     ::=      '""'    
[120]       EscapeApos     ::=      "''"
kaby76 commented 1 year ago

You're right. Looks like I forgot to roll some of the changes from my latest grammar files into this repo. The grammar needs to be split,too.