mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
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:
parent
079d989877
commit
2e078ff774
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user