SublimeHaskell icon indicating copy to clipboard operation
SublimeHaskell copied to clipboard

Getting ST2 Haskell (improved) as the default syntax on ST3 (?)

Open moodmosaic opened this issue 6 years ago • 5 comments

This looks weird: image I'm on ST3, but I keep getting ST2 Haskell (improved) as the default syntax for .hs files.

moodmosaic avatar Feb 22 '18 10:02 moodmosaic

FWIW, it uses the right syntax if I manually go and delete the Syntaxes/ST2-tmLanguages folder.

moodmosaic avatar Feb 22 '18 11:02 moodmosaic

@moodmosaic: ST has persistent state for each view, so it remembers which syntax file was being used in your last session. Click on the the syntax name ("ST2 Haskell (improved)"), you'll get a menu from which you can choose the ST3 version -- look for _SublimeHaskell" and its submenu.

Not sure if closing the file's view and re-opening would actually fix the problem.

bscottm avatar Feb 22 '18 16:02 bscottm

ST3 didn't remember the setting, even after setting it manually. When I close the file, each time I open it it'll go back to ST2 Haskell (improved). So I ended up deleting the Syntaxes/ST2-tmLanguages folder.

moodmosaic avatar Feb 22 '18 20:02 moodmosaic

Isn't actually the build-in Haskell syntax good enough in ST3?

Haskell syntax (built-in):

image

Haskell syntax (Sublime Haskell):

image

moodmosaic avatar Feb 23 '18 16:02 moodmosaic

@moodmosaic: That'd certainly clear a lot of issues... :-)

Personally, yes, I think it's perfectly sufficient. You wouldn't believe the heuristics I have to employ to convert up to the ST3 syntax highlighting due to Haskell layout. There is a definite bias toward statement-structured languages; there is no support for indentation-based languages. Even Python's syntax highlighting only highlights the essentials.

bscottm avatar Feb 23 '18 17:02 bscottm