Home Download Buy Blog Forum Support

scala syntax highlighting problem

scala syntax highlighting problem

Postby realdope on Tue Nov 13, 2012 8:55 pm

Check out the syntax highlighting on the following valid scala code in sublime version 2.0.1 Build 2217:

Code: Select all
object HelloWorld {
  class Complex(_re:Double, _im:Double) {
    def re = _re
    def im = _im
    override def toString() = "" + re + (if (im<0) "" else "+") + im + "j"
  }
  def main(args: Array[String]) {
    println(new Complex(1.5, 2.3))
  }
}


This is what I see:
Image
realdope
 
Posts: 3
Joined: Mon Jul 09, 2012 12:31 pm

Re: scala syntax highlighting problem

Postby facelessuser on Tue Nov 13, 2012 9:11 pm

In your Scala.tmLanguage file change the following line to what you see:
 619                     <string>&lt;/?([a-zA-Z][a-zA-Z0-9]*)</string>
facelessuser
 
Posts: 1189
Joined: Tue Apr 05, 2011 7:38 pm

Re: scala syntax highlighting problem

Postby realdope on Wed Nov 14, 2012 5:24 am

Awesome. that fixed it.
realdope
 
Posts: 3
Joined: Mon Jul 09, 2012 12:31 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 10 guests