Home Download Buy Blog Forum Support

tmLanguage preceded by

tmLanguage preceded by

Postby agibsonsw on Sat Apr 07, 2012 1:07 am

Hello. Is it possible in a tmLanguage file to scope something if it is preceded by another, named, scope? I'm thinking of:

library_name.methodcall()

I can find the . methodcall and (, but can I look at the scope before the dot? Kinda like "include only". Andy.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm

Re: tmLanguage preceded by

Postby jps on Sat Apr 07, 2012 3:24 am

It's not, but in many cases you can use a look behind assertion (http://www.geocities.jp/kosako3/oniguruma/doc/RE.txt) to do the same thing.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: tmLanguage preceded by

Postby nick. on Sat Apr 07, 2012 3:57 am

Can I hijack this thread to ask what engine Sublime uses for regex?
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: tmLanguage preceded by

Postby agibsonsw on Sat Apr 07, 2012 9:53 am

jps wrote:It's not, but in many cases you can use a look behind assertion (http://www.geocities.jp/kosako3/oniguruma/doc/RE.txt) to do the same thing.


Thank you. So looks like I can't avoid repeating my list of library names. ah well, never mind :)
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm


Return to Technical Support

Who is online

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