How to highlight a comment in mcedit?

1.8k Views Asked by At

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 "--"?

1

There are 1 best solutions below

3
On

This question is probably more suited to superuser, however:

Based on the man page, I would try:

context linestart -- \n brown
    spellcheck

context linestart -- -- brown
    spellcheck