Syntax file for M4/Autoconf - 2

Vlad Romanenko VladRomanenko at ukr.net
Thu Sep 19 09:45:31 UTC 2002


Hello, Pavel!

> This looks very annoying.  Too bright.
Oh, I'm really sorry! I just forgot to switch to default color scheme.

You know, the reason I started working on MC syntax files was I didn't'
like its default colors. I prefer colors from pascal.syntax (I use
console, not a terminal). So I modified c.syntax. I tried different
colors to get the best color scheme for me and it wasn't easy since I
had to replace multiply entries for same logical value (for example
string, c-keyword, etc). So I turn syntax file to an M4 source, added
macros like C_STRING_COLOR and put it everywhere. This way I separated
color values from syntax rules. Then I put color values into separate
file (I call it scheme) and include either colors.default.m4 or
colors.bright.m4 when necessary.
Now I have 13 syntax files being preprocessed and shared 2 color schemes
for all syntax files.

So changing colors is easy.  :)
You know, default colors for m4 now looks pretty, I even liked them
although I usually prefer bright cvolors.

New m4.syntax is attached.

Put these lines in Syntax:
----
file (..\*\\.m4$|configure.in) M4\sMacroprocessor\sSource
include m4.syntax
----
And add a line to syntax/Makefile.am

Regards,
Vlad Romanenko.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: m4.syntax
Type: application/octet-stream
Size: 4756 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20020919/84ed85c6/attachment.obj>


More information about the mc-devel mailing list