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

Andrew V. Samoilov sav at bcs.zp.ua
Mon Mar 3 19:16:12 UTC 2003


Pavel Roskin wrote:
> 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:

. . .

> 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

It implemented too but requires "context default" line in the 
defines.syntax.  Attached patch must be used with today's syntax.c.
Also defines variable should be moved to WEdit structure.

-- 
Regards,
Andrew V. Samoilov
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: syntax.patch
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20030303/5c2bb99c/attachment.ksh>


More information about the mc-devel mailing list