Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.[char] as a numeric literal prevents errors from being raised #93

Open
ninmonkey opened this issue Jul 4, 2021 · 1 comment
Open

Comments

@ninmonkey
Copy link
Contributor

ninmonkey commented Jul 4, 2021

PQ - 2021-07-04 gif

  • d isn't throwing an error
  • when d is enabled, it hides errors b would raise

The textmate scope is constant.numeric.integer.powerquery for the section before the .

Environment

powerquery.vscode-powerquery 0.1.19

To Reproduce

[<number>].<char><anything>
  • It's . followed by a single text character that triggers it. The rest can be anything.
  • the prefix is optional
  • It occurs with values outside the hex literal range (non-a-f)
let   
    a = .z
in
    a

Expected Behavior

PBI returns an Token Comma Expected error
image

@ninmonkey
Copy link
Contributor Author

ninmonkey commented Mar 14, 2022

Update

'z.3' is working correctly

samples

let   
    a = 3.z
in
    a
Expression.SyntaxError: Token Comma expected.
let   
    a = .z
in
    a
Expression.SyntaxError:Token Literal expected.
let   
    a = z.3
in
    a
Expression.Error:The name 'z.3' wasn't recognized. Make sure it's spelled correctly.

Update:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant