ionide / ionide-fsgrammar

Shared Textmate Regex Style F# Language Grammar
MIT License
35 stars 36 forks source link

Similar lines highlighted differently #158

Closed LiteracyFanatic closed 2 years ago

LiteracyFanatic commented 3 years ago

Describe the bug The following example produces incorrect syntax highlighting.

To Reproduce

module Test
let parts = [| 1; 2; 3 |]
let a = parts |> Array.tryItem 0
let b = parts |> Array.tryItem 1
let c = parts |> Array.tryItem 2

Expected behaviour A clear and concise description of what you expected to happen.

Screenshots 2021-01-30T20:16:12-06:00

Environment (please complete the following information):

MangelMaxime commented 2 years ago

I cannot reproduce the problem

image

And I don't think this problem was coming from the grammar but probably more from the semantic highlight which can takes sometimes to kick in and so don't refresh as fast as you type.

MangelMaxime commented 2 years ago

@baronfel While you are around ;)

I think this issue too can be closed.

LiteracyFanatic commented 2 years ago

I can confirm that this example highlights correctly now. Thanks!