emacs-fsharp-mode icon indicating copy to clipboard operation
emacs-fsharp-mode copied to clipboard

functions as type definitions not highlighting correctly

Open voronoipotato opened this issue 6 years ago • 1 comments

https://github.com/fsharp/emacs-fsharp-mode/blob/96513ea53b51dd5abc32c0a0d5b1443484e367be/fsharp-mode-font.el#L77

        static member FMapC2 (f: float -> float -> float) (c1, c2) =
            {r=f c1.r c2.r; g = f c1.g c2.g; b = f c1.b c2.b}

Type definitions of functions are not highlighted properly in emacs. Arrows are correct however subsequent types after arrows are left unhighlighted. I believe that line 77 in fsharp-mode-font.el is to blame.

Imgur

voronoipotato avatar Apr 24 '19 02:04 voronoipotato

https://github.com/fsharp/emacs-fsharp-mode/blob/96513ea53b51dd5abc32c0a0d5b1443484e367be/fsharp-mode-font.el#L98

In a function the first character can't be numeric however the following characters can. Some of the regex syntax is a bit lost on me, however I'm trying lol.

voronoipotato avatar Apr 24 '19 03:04 voronoipotato