dlang-community / D-Scanner

Swiss-army knife for D source code
Boost Software License 1.0
240 stars 80 forks source link

Missing interpolated strings support #953

Open al1-ce opened 4 months ago

al1-ce commented 4 months ago

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 ()
WebFreak001 commented 4 months ago

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

al1-ce commented 4 months ago

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

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