Sublime Forum

Bug in ML syntax highlighter?

#1

See the following screenshot:


( For some reason, the screenshot doesn’t appear! So, direct link: download/file.php?mode=view&id=1165 )

Particularly at what is happening at line 82. Apparently, (from my small investigations) Sublime Text doesn’t like expressions in the form of "fun f = " within a let…in…end blocks, even though the file containing the supposedly violating syntax compiles and executes fine with my Standard ML New Jersey compiler (“sml”), i.e. is de-facto valid syntax in my case.

Is there something I can do? I think no highlighting is often better than bad highlighting, but highlighting helps me a lot. So I would like to remedy this somehow :smile:

0 Likes

#2

I noticed there is a single quote ( ’ ) right after the as_int

Removing that fixes your problem?

0 Likes

#3

[quote=“Eduan”]I noticed there is a single quote ( ’ ) right after the as_int

Removing that fixes your problem?[/quote]

That’s valid syntax in Haskell, probably is valid in ML also. It can be fixed by editing the ML.tmTheme file. I’m not familiar enough with the language to help more than that, unfortunately.

0 Likes

#4

Hi,

Sorry that this is a bit off topic.

I noticed that you had a syntax file for sml.
Could you share where you got that?
The only ones I have found so far are for .ml files.
I also need syntax that is compatible with the New Jersey Compiler.

Thanks!

0 Likes