【发布时间】:2018-03-17 17:13:51
【问题描述】:
【问题讨论】:
标签: sublimetext3 syntax-highlighting sublime-syntax
【问题讨论】:
标签: sublimetext3 syntax-highlighting sublime-syntax
好吧,没人知道。这个小例子是如何工作的。
%YAML 1.2
---
name: MyCustomSyntax
file_extensions: txt
scope: source.txt
contexts:
main:
- comment: "mykey operator definition"
match: mykey(?= *?= *?\{)
scope: keyword.txt
- comment: "mykey structure definition"
match: mykey(?! *?= *?\{)
scope: string.txt
- comment: "other operator definition"
match: (=|{|})
scope: comment.txt
【讨论】: