Re: [PATCH]: define keyword to substitute colors in syntax files



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]