Home Download Buy Blog Forum Support

.sublime-completions scope definition

.sublime-completions scope definition

Postby zloutenka on Mon May 07, 2012 12:50 pm

Hello,
I'm quite new to sublime and this worries me:

I've created custom completions for
Code: Select all
"scope": "source.css, source.css.less"

It works fine when working with css, but when I switch to less, the completions rarely work (but sometimes they do!?!).

When checking the console for the scope, it shows the right one.
with no selection
Code: Select all
>>> print (view.syntax_name(view.sel()[0].b))
source.css.less

with random text selected
Code: Select all
>>> print (view.syntax_name(view.sel()[0].b))
support.type.property-name.css source.css.less

When working in the *.less file, switching to CSS syntax enables the completions.

Any idea what's causing the trouble?
zloutenka
 
Posts: 13
Joined: Mon May 07, 2012 12:44 pm

Return to Technical Support

Who is online

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