idris-lang / Idris2

A purely functional programming language with first class types
https://idris-lang.org/
Other
2.46k stars 368 forks source link

Bad semantic highlighting on lambda with parenthesis #3279

Open buzden opened 1 month ago

buzden commented 1 month ago

Steps to Reproduce

Typecheck the following code

import Data.DPair

f : Exists List -> Unit
f = \(Evidence _ _) => ()

in an editor with semantic highlighting or use katla to generate semantically highlighted html.

Expected Behavior

Parenthesis are not highlighted specially or highlighted as a keyword.

Observed Behavior

Opening parenthesis is highlighted as a type constructor, e.g.

b (here dark blue is for type constructors).