[PATCH]: define keyword to substitute colors in syntax files
Andrew V. Samoilov
sav at bcs.zp.ua
Fri Feb 28 18:50:57 UTC 2003
Hello!
Pavel Roskin wrote:
>>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
This part is implemented. Test attached patch please.
> 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
This part is some tricky, but it is my goal and will be implemented some
later.
--
Regards,
Andrew V. Samoilov
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: syntax.diff
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20030228/eb2d4cd9/attachment.diff>
More information about the mc-devel
mailing list