Home Download Buy Blog Forum Support

Bug in ML syntax highlighter?

Bug in ML syntax highlighter?

Postby amn on Tue Oct 30, 2012 10:24 am

See the following screenshot:

Screen Shot 2012-10-29 at 10.00.14 PM.png
At line 82, the syntax highlighting breaks, apparently...
Screen Shot 2012-10-29 at 10.00.14 PM.png (41.65 KiB) Viewed 1313 times


( 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 :-)
amn
 
Posts: 2
Joined: Tue Oct 30, 2012 10:16 am

Re: Bug in ML syntax highlighter?

Postby Eduan on Tue Oct 30, 2012 1:46 pm

I noticed there is a single quote ( ' ) right after the
Code: Select all
as_int


Removing that fixes your problem?
Check out my blog and website: EduanTech.com (currently undergoing some facial and organs makeover...)
Also check out my profiles: GitHub - Greduan | BitBucket - Greduan
Eduan
 
Posts: 140
Joined: Sun Oct 14, 2012 4:05 pm

Re: Bug in ML syntax highlighter?

Postby nick. on Tue Oct 30, 2012 6:20 pm

Eduan wrote:I noticed there is a single quote ( ' ) right after the
Code: Select all
as_int


Removing that fixes your problem?


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.
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: Bug in ML syntax highlighter?

Postby joey9 on Wed Oct 31, 2012 8:11 pm

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!
joey9
 
Posts: 1
Joined: Wed Oct 31, 2012 8:07 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], xyresic and 21 guests