Global search marker /g when used with */ and **/ shorten matching expressions gives ambiguous expressions
nmichel opened this issue · comments
Nicolas commented
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).