microsoft / vscode-powerquery

Visual Studio Code extension for Power Query / M.
MIT License
87 stars 16 forks source link

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

Open ninmonkey opened 3 years ago

ninmonkey commented 3 years ago

PQ - 2021-07-04 gif

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>
let   
    a = .z
in
    a

Expected Behavior

PBI returns an Token Comma Expected error image

ninmonkey commented 2 years ago

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