purescript-contrib / purescript-vim

Syntax highlighting and indentation for PureScript
BSD 2-Clause "Simplified" License
154 stars 35 forks source link

Infix function call with prime(s) in function name isn't highlighted correctly #82

Open triallax opened 2 years ago

triallax commented 2 years ago

Here's a screenshot:

bug demonstration

There are also other edge cases not handled properly, though I doubt anybody actually faces them, and so fixing them might not be worth it:

bonus-demonstration

Code used in screenshots ```purescript -- This works. a = 1 `bar` 2 -- This doesn't. b = 1 `bar'` 2 -- The number and placement of primes doesn't matter. c = 1 `b'ar` 2 d = 1 `b'a'r` 2 -- Bonus (these actually work!). e = 1 `(+)` 2 f = 1 `clamp 2` 3 -- I know this is nonsense, but bear with it. ```