rainbow icon indicating copy to clipboard operation
rainbow copied to clipboard

Haskell should highlight application operator ($)

Open jan-matejka opened this issue 11 years ago • 4 comments

jan-matejka avatar Oct 04 '14 00:10 jan-matejka

@yaccz, thanks for reporting. i'll try to have a look on this one.

diasbruno avatar Oct 04 '14 04:10 diasbruno

ping @yaccz

in case you still need this, i've updated the haskell language support...i think it's getting better. let me know if i miss something.

cheers.

diasbruno avatar Oct 20 '14 11:10 diasbruno

Way better. Kudos.

What I can confirm

main = putStrLn "Hello World!" String is now correct and "!" has the same color as the rest.

main = putStrLn (show (convert ["2", "3"])) strings are highligted now.

The ($) is highlighted.

Strings with spaces seem to be highlighted properly. Maybe more but I'm not sure.

It would be nice to highlight number literals as well, like

[1,2,3]

jan-matejka avatar Oct 20 '14 12:10 jan-matejka

i've added 'constant.numeric' to #171, but most of the themes don't support it, but a simple css would do it.

pre .numeric {color...}

diasbruno avatar Oct 20 '14 13:10 diasbruno