I am writing a syntax highlighter for Sublime Text 3, but I am facing problem of find the correct scope for syntax. For example
constants:
- match: \b(true|false)\b
scope: constants.language.boolean
- match: \b(void|new)\b
scope: constants.language
# operators
operators:
- match: \b(and|or|not)\b
scope: keyword.operator.logical
- match: \b(\+=|-=|*=|\/=|%=|==|!=|<=|>=|<|>|\+|-|\*|\/|%|\^)\b
scope: keyword.operator.arithmetic
How do I know scope of and
, +=
, true
, false
etc.
Where are all the available scope syntax present?
Can anyone direct me to it's documentation/source code? Any help will be appreciated.
I found this official page on syntax highlighting https://www.sublimetext.com/docs/3/syntax.html, but it didn't help much.
Thanks