mcedit: syntax.syntax: highlight comments preceded by spaces.

Comments don't have to start at the 1st column. We add support for this case.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Mooffie 2016-12-05 01:48:33 +02:00 committed by Andrew Borodin
parent 079d989877
commit 2e078ff774

View File

@ -52,3 +52,9 @@ context default
keyword whole white white
context linestart # \n brown
spellcheck
# Ideally we would have defined comments with "context linestart \[\s\]# ...",
# but contexts can't start with a character class. So we define comments twice.
context linestart \s\[\s\]# \n brown
spellcheck