SublimeHaskell
SublimeHaskell copied to clipboard
Getting ST2 Haskell (improved) as the default syntax on ST3 (?)
This looks weird:
I'm on ST3, but I keep getting ST2 Haskell (improved) as the default syntax for
.hs
files.
FWIW, it uses the right syntax if I manually go and delete the Syntaxes/ST2-tmLanguages
folder.
@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.
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.
Isn't actually the build-in Haskell syntax good enough in ST3?
Haskell syntax (built-in):
Haskell syntax (Sublime Haskell):
@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.