[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] Color patch
From: |
delta |
Subject: |
[Nano-devel] Color patch |
Date: |
Wed, 10 Sep 2003 03:48:03 -0600 |
http://bespin.org/~qz/nano-1.2.2-color.patch
Changes made by this patch:
- Errors when a syntax name is redefined.
- Uses syntax override when present even when a definition
exists for the file extension.
- New 'default-syntax' directive, applied to files that don't
match a syntax.
- New 'icolor' directive for case-insensitive matches,
same format as color directive.
- New 'include' directive based on the nanovarcinsert patch.
Modified to only include files containing color and icolor
directives. Errors when called outside of a syntax directive.
- New '-d' and '--display-syntax' options to display syntaxes for
testing purposes and then quit. Displayed in a grep'able format
`nano -d |grep "^html:"`
- Only stores compiled regular expressions for syntaxes that are in use.
I formatted new error messages as "-- the error --" so they can be
easily found and changed if needed.
The new regular expression code reduced the memory footprint by 1.3meg
with my nanorc file. I used it to write most of the code in this patch
and I had no problems. This patch does not fix the regexec() memory
leak.
--
Brand Huntsman -- http://www.qzx.com
Linux 2.4.21 (i686 451MHz) up 43 days 22:50 hours, 1271558 procs
- [Nano-devel] Color patch,
delta <=