X-Sharp / XSharpPublic

Public repository for the source code for the XSharp Compiler, Runtime, Project System and Tools.
Apache License 2.0
89 stars 36 forks source link

Problem with Extended Expression Match Marker (Xbase++) #1487

Open DenGhostYY opened 3 weeks ago

DenGhostYY commented 3 weeks ago

Describe the bug Unfortunately, the problem with the extended expression match marker isn't resolved.

To Reproduce

#translate PN(<file>, <(field)>) => GF(<file>, <(field)>)

local f := PN(handle,F_NAME ) // one space before right paranthesis

Expected behavior (XBase++ ppo)

local f := GF(handle, "F_NAME")

Actual behavior (X# ppo)

local f :=  GF(handle, "F_NAME ") // space inside a string literal

Additional context X# Compiler version 2.20.0.3 (public) -dialect:xBase++ -codepage:866 -lb -enforceself -memvar -xpp1 -vo1 -vo3 -vo4 -vo5 -vo9 -vo10 -vo12 -vo13 -vo14 -vo15 -vo16 -vo17 -reference:XSharp.Core.dll -reference:XSharp.RT.dll -reference:XSharp.XPP.dll

RobertvanderHulst commented 3 weeks ago

Did this work before?

DenGhostYY commented 2 weeks ago

Yes, it worked before