microsoft / microsoft/powerquery-parser

[BUG] Quoted identifiers and unquoted identifiers sometimes parse differently

Open
#370 0 comments 0 reactions 1 assignee View on GitHub

@JordanBoltonMN is already working on this.

Since Jun 20, 2023.

bug
Dominant language
TypeScript
Stars
137
Forks
34
Avg merge
50m
Merged PRs (30d)
1

Description

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)".

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.