I need to highlight comments on mcedit using syntax file. One line comment begins with "--" and may end with "\n" or with "--". My syntax file content which responsible for comments is following:
context -- \n brown
spellcheck
context /\* \*/ brown
spellcheck
Example of one line comments is here:
-- 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
How to highlight one line comment that may end with "\n" or with "--"?