vekatze / neut

A functional programming language with static memory management
https://vekatze.github.io/neut/
MIT License
840 stars 11 forks source link

fix: `textDocument/documentHighlight` #199

Closed vekatze closed 3 months ago

vekatze commented 3 months ago

before:

define my-func(): type {
       ^^^^^^^^^^^^^^^^^^^^^ (highlighted)
  type
}

define main(): unit {
  let _ = this.loc-{*}test.my-func in // {*}: cursor
  print("Hello, world!\n")
}

after:

define my-func(): type {
       ^^^^^^^ (highlighted)
  type
}

define main(): unit {
  let _ = this.loc-{*}test.my-func in // {*}: cursor
  print("Hello, world!\n")
}