by C0D312 on Sun Jan 15, 2012 3:46 pm
I think I can help explain...
Selector: refers to the name of the scope as defined by the tmLanguage. The tmLanguage assigns names to different regular expressions. The tmTheme then uses these selectors to assign colors to particular scopes. You can see the selector at the cursor using the command: show_scope_name.
Therefore, saying "selector contains .*" is backwards since "selector" is returning the name of the scope itself.
Alternatively, you could say "Preceding Text regex contains .*" because preceding_text is returning the text before the cursor.
In the context field:
- selector can be equal or not_equal.
- Preceding_text/following_text/text can be regex_match, regex_contains, not_regex_contains
I feel like a list of all the available options needs to be spelled out somewhere. It may be in AAAPackageDev, or maybe sublimetext.info, if it's not it should be.