vmware-labs / yaml-jsonpath

JSONPath implementation for the gopkg.in/yaml.v3 node API
Other
49 stars 12 forks source link

Bracket with unescaped single quote should fail to parse #9

Closed glyn closed 4 years ago

glyn commented 4 years ago

See https://cburgmer.github.io/json-path-comparison/results/bracket_notation_with_quoted_string_and_unescaped_single_quote.html and https://cburgmer.github.io/json-path-comparison/results/bracket_notation_with_two_literals_separated_by_dot.html.

glyn commented 4 years ago

This issue may require making the lexemes more fine-grained so that errors can be given more accurate context.

glyn commented 4 years ago

I deferred making the lexer more fine-grained, but beefed it up substantially in the relevant area.