Re: Fix parsing of identifiers in jsonpath

2019-10-02 Thread Nikita Glukhov
Attached v2 patch rebased onto current master. On 18.09.2019 18:10, Nikita Glukhov wrote: Unfortunately, jsonpath lexer, in contrast to jsonpath parser, was written by Teodor and me without a proper attention to the stanard. JSON path lexics is is borrowed from the external ECMAScript [1], and

Re: Fix parsing of identifiers in jsonpath

2019-09-18 Thread Tom Lane
Nikita Glukhov writes: > I don't know if it is possible to check Unicode properties "ID_Start" and > "ID_Continue" in Postgres, and what ZWNJ/ZWJ is. Now, identifier's starting > character set is simply determined by the exclusion of all recognized special > characters. TBH, I think you should s

Re: Fix parsing of identifiers in jsonpath

2019-09-18 Thread Chapman Flack
On 9/18/19 11:10 AM, Nikita Glukhov wrote: > 4. Even if the Unicode escape sequence '\u' is used, it cannot produce >    special symbols or whitespace, because the identifiers are displayed > ... > I don't know if it is possible to check Unicode properties "ID_Start" and > "ID_Continue" in Pos