【发布时间】:2016-07-23 16:13:29
【问题描述】:
我正在为 Sublime Text 3 编写语法荧光笔,但我面临着找到正确的语法范围的问题。 例如
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
我如何知道and、+=、true、false 等的范围
所有可用的范围语法在哪里?
谁能指导我查看它的文档/源代码?任何帮助将不胜感激。
我在语法高亮https://www.sublimetext.com/docs/3/syntax.html 上找到了这个官方页面,但它并没有太大帮助。
谢谢
【问题讨论】:
标签: scope sublimetext3 syntax-highlighting