[PATCH]: define keyword to substitute colors in syntax files
Pavel Roskin
proski at gnu.org
Tue Feb 25 15:15:20 UTC 2003
Hello!
> this patch allows new "define" keyword in builtin editor syntax files.
> Now only colors can be substituted, but it can be improved on request.
Thank you! I'm applying it.
What would really be nice is:
1) Define both foreground and background:
define comment brown black
context default
keyword /\* comment
2) Make it possible to put defines in a separate file:
Syntax:
include defines.syntax
file ..\*\\.sh$ Shell\sScript ^#!\s\*/.\*/([a-z]?|ba|pdk)sh
include sh.syntax
defines.syntax:
define comment brown black
sh.syntax:
context # \n comment
--
Regards,
Pavel Roskin
More information about the mc-devel
mailing list