powerquery-parser icon indicating copy to clipboard operation
powerquery-parser copied to clipboard

[BUG] Quoted identifiers and unquoted identifiers sometimes parse differently

Open CurtHagenlocher opened this issue 1 year ago • 0 comments

Expected behavior A quoted reference to an identifier which was defined as unquoted should be recognized as the same.

Actual behavior If you define an identifier without quotes and then reference it using the quoted form you get an error.

To Reproduce

shared SomeValue = 1; shared AnotherValue = #"SomeValue";

In the editor, #"SomeValue" gets a red squiggle and a tooltip of "Cannot find the name '#"SomeValue"', did you mean 'SomeValue'? powerquery(Error.UnknownIdentifier)".

CurtHagenlocher avatar Jun 20 '23 13:06 CurtHagenlocher