Home Download Buy Blog Forum Support

CSS Stylus tmLanguage

CSS Stylus tmLanguage

Postby zmbmartin on Mon Mar 14, 2011 6:04 pm

I was wondering if someone could help me out here. I am trying to use Stylus a css compiler for node/expressjs but when I add the tmLanguage bundle fo syntax highlighting sublime locks up. I just made a folder in ~/.Sublime Text 2/Packages/Stylus and added the tmLanguage file. When I start sublime text and select a stylus file it reads it as plain text then when I select stylus in the syntax menu sublimetext locks up and my cpu just runs at 100% til I kill sublime text.

Here is a link the tmLanguage file.
https://github.com/LearnBoost/stylus/bl ... tmLanguage

Any thoughts or insight would be great.

Thanks
zmbmartin
 
Posts: 15
Joined: Sat Feb 19, 2011 8:51 pm

Re: CSS Stylus tmLanguage

Postby zmbmartin on Mon Mar 14, 2011 11:36 pm

Anybody willing to try the tmLanguage bundle to see if they are getting the same results as me?

Thanks
zmbmartin
 
Posts: 15
Joined: Sat Feb 19, 2011 8:51 pm

Re: CSS Stylus tmLanguage

Postby jps on Wed Mar 16, 2011 9:53 am

I believe there is a difference in handling regexs in tmLanguage files that match 0 characters between Sublime Text and TextMate. It's something I'm planning on looking into, but it's not at the top of the priority list.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: CSS Stylus tmLanguage

Postby zmbmartin on Thu Mar 17, 2011 12:17 pm

Thanks for the heads up jps. I understand this is not a high priority, but I look forward to a fix.

Thanks
zmbmartin
 
Posts: 15
Joined: Sat Feb 19, 2011 8:51 pm

Re: CSS Stylus tmLanguage

Postby Sembiance on Mon Mar 21, 2011 11:24 am

I got the same 100% CPU problem with this tmLanguage file that you did. I just purchased Sublime on Linux. I'm going to play around with modifying the file tonight to see if I can fix the problem and get Stylus support in Sublime :)
Sembiance
 
Posts: 2
Joined: Sun Mar 20, 2011 4:43 pm
Location: Boston, USA

Re: CSS Stylus tmLanguage

Postby Wizek on Thu Jun 09, 2011 12:28 am

Sembiance wrote:I got the same 100% CPU problem with this tmLanguage file that you did. I just purchased Sublime on Linux. I'm going to play around with modifying the file tonight to see if I can fix the problem and get Stylus support in Sublime :)


Have you been able to accomplish some progress?
Wizek
 
Posts: 4
Joined: Tue May 03, 2011 1:24 pm

Re: CSS Stylus tmLanguage

Postby Qard on Thu Jun 09, 2011 2:00 am

Using build 2060 here. Not getting any 100% CPU thing, but the file appears empty when I try to open it.
Qard
 
Posts: 3
Joined: Tue Jun 07, 2011 3:50 am

Re: CSS Stylus tmLanguage

Postby Wizek on Fri Jun 10, 2011 7:48 pm

Qard wrote:Using build 2060 here. Not getting any 100% CPU thing, but the file appears empty when I try to open it.

Yeah, that's one reflectuin of the issue.

Now try opening a *.styl file first, then copy the .tmLanguage file to the Stylus folder in ST's Packages.
Then, in ST, go to View > Syntax > Stylus.
You've got a locked up Sublime Text window and 100% cpu usage. Or don't you?
Wizek
 
Posts: 4
Joined: Tue May 03, 2011 1:24 pm

Re: CSS Stylus tmLanguage

Postby Qard on Fri Jun 10, 2011 8:16 pm

Yep. That locked it up. Now I know not to do that. :O

As mentioned here;
https://github.com/LearnBoost/stylus/is ... nt_1331098

Apparently replacing the "&" with "\&" fixes it.
Qard
 
Posts: 3
Joined: Tue Jun 07, 2011 3:50 am

[SOLVED] CSS Stylus tmLanguage problem

Postby Wizek on Fri Jun 10, 2011 8:23 pm

Got a solution!

You can get a working file Here.
(Both Sublime Text 2 and 1)
Wizek
 
Posts: 4
Joined: Tue May 03, 2011 1:24 pm


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 18 guests