JustusAdam/language-haskell

Context arrow inside comment wrongly highlighted

sheaf opened this issue · 0 comments

sheaf commented

I came across the following bug while browsing GHC.Tc.Types.Constraint:

ghc_tc_bug

The issue is that the => inside the comment is being highlighted, as part of the data_context pattern in the grammar.

I'm not sure why this happens, as all the relevant patterns seem to include the #comment_like pattern, which should ensure that that part of the source code is highlighted entirely as a comment.