D-Scanner icon indicating copy to clipboard operation
D-Scanner copied to clipboard

Missing interpolated strings support

Open nxuv opened this issue 1 year ago • 2 comments

Having interpolated strings in file will show an error

Example, running dscanner lint on file containing this line:

prompt(i"Set cursor to \"$(cursorName)\"?".text, false);

Shows

setcursor.d(69:18): Error: Expected `)` instead of stringLiteral `"Set cursor to \"$(cursorName)\"?"` ()
setcursor.d(69:65): Error: Primary expression expected ()

nxuv avatar May 24 '24 10:05 nxuv

there is an open PR in libdparse for this, feel free to give input there for spec deviations: https://github.com/dlang-community/libdparse/pull/510

WebFreak001 avatar May 24 '24 11:05 WebFreak001

Oh, didn't knew about that pr I'll check it out

I'll keep this issue open for now for status and stuff

nxuv avatar May 24 '24 11:05 nxuv