pgourlain / vscode_erlang

Erlang support for Visual Studio Code
MIT License
125 stars 46 forks source link

Syntax highlighting wrong after fun() without end #297

Open Mikaka27 opened 1 month ago

Mikaka27 commented 1 month ago

It seems that syntax highlighting is wrong after type specification that looks like: -type ct_info_timetrap_fun() :: fun().

The problem is fun() without end.

Steps to reproduce:

  1. git clone git@github.com:erlang/otp.git
  2. Open vscode on otp folder
  3. Open lib/common_test/src/ct_suite.erl in vscode
  4. Look at this lines: https://github.com/erlang/otp/blob/master/lib/common_test/src/ct_suite.erl#L82-L83
  5. Observe that syntax coloring is wrong after line 82 image

You can even see that the same issue is displayed on github as well (uses same parser or something??): https://github.com/erlang/otp/blob/master/lib/common_test/src/ct_suite.erl#L82-L83

pgourlain commented 1 month ago

Hi Michal,

Thanks for your report.