Sublime Forum

Scopes

#1

I do not understand the syntax for writing a scope.

I am trying to write a sublime-completion file.

I have read this tutorial here
docs.sublimetext.info/en/latest/ … ompletions

It gives this line as a scope, but does not even describe what the second field actually denotes…???

It then tells you to read on scopes here.
docs.sublimetext.info/en/latest/ … -selectors

There it gives you a definition of how scopes work, but again says nothing about the syntax or the second field and what it actually denotes.

For example I want to scope of my completions to always be on. What do I put for scope?

0 Likes

#2

What second field?

I know that the scopes documentation is lacking, especially the selector part, but we haven’t come around working on it because other things were deemed more important.

[quote=“Ap0c552”]
For example I want to scope of my completions to always be on. What do I put for scope?[/quote]

“source, text” will cover everything.

0 Likes