nmichel / ejpet

Matching JSON nodes in Erlang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Global search marker /g when used with */ and **/ shorten matching expressions gives ambiguous expressions

nmichel opened this issue · comments

Expression */**/42/g is ambiguous.

It can be read either

*/ ... /g

or

... **/42/g

The erlang parser associates the marker to the nearest expression (**/42, in the example).
But the javascript port of ejpet (jjpet) associates it to the outer expression (*/, in the example).

Closed by commit 84c1c2f