1. Summary
I’m don’t understand use of terms scope
, scope selector
. Do I use the correct terms in my article?
2. Links
- Scope Naming in Official Sublime Text documentation,
- Scope Selectors in Official TextMate documentation.
3. Details
Excerpt from the TextMate documentation:
A scope selector is a pattern much like a CSS selector which is matched against the scope of the caret (i.e. current context) and the outcome is either a match or a non-match (see also: ranking matches further down).
Example:
'source.python meta.structure.list.python meta.structure.list.item.python string.quoted.single.single-line.python '
-
source.python meta.structure.list.python meta.structure.list.item.python string.quoted.single.single-line.python
— is “scope” or “scope selector”? As far as I understand from TextMate documentation, “scope selector” more correct term. -
source.python
— as it is right to call? “Syntax scope”, “syntax scope selector” or something else?
Thanks.