【发布时间】:2011-06-23 08:36:10
【问题描述】:
我需要使用语法文件在 mcedit 上突出显示 cmets。 一行注释以“--”开头,可以以“\n”或“--”结尾。 我负责 cmets 的语法文件内容如下:
context -- \n brown
spellcheck
context /\* \*/ brown
spellcheck
一行cmets的例子在这里:
-- This line starts with comment
this is code -- This is another comment, which ends with '\n'
this is another code -- This is another comment, which ends with '--' -- this is another code after comment
如何突出显示可能以“\n”或“--”结尾的一行注释?
【问题讨论】:
-
我的类似解决方案,但在objective-c上,我认为它很有帮助stackoverflow.com/questions/8030552/…
标签: syntax-highlighting mc mcedit