]> git.wh0rd.org Git - nano.git/commitdiff
add various improvements to the "c-file" regexes by Mike Frysinger, with
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 28 Jul 2004 13:50:43 +0000 (13:50 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 28 Jul 2004 13:50:43 +0000 (13:50 +0000)
a few additions of mine

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1869 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
doc/nanorc.sample

index 77add931d6e33003e49ab38667806cde13ca105e..e46717382ab5c30767c8689058b4ba31e5afe037 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -148,6 +148,10 @@ CVS code -
          Ctrl-X, for consistency with the file browser. (DLR)
 - nanorc.sample:
        - Add sample regexes for patch files. (Mike Frysinger)
+       - Various improvements to the "c-file" regexes.  Add double,
+         typedef, extern, union, unsigned, inline, and long to the
+         green list. (Mike Frysinger)  DLR: Also add signed, short, and
+         enum to the green list.
 
 GNU nano 1.3.3 - 2004.06.28
 - General:
index a7c479bf0a073b44cd7a6af3b70cd5af9bcc4b9e..c6bed8e3251260f15fe22df2f3d42e931ef50d7d 100644 (file)
 ##
 # syntax "c-file" "\.(c|h)$"
 # color red "\<[A-Z_]{2,}\>" 
-# color green "\<(float|char|int|void|static|const|struct)\>" 
-# color brightyellow "\<(if|while|do|else|case|switch)\>"
-# color brightcyan "^ *# *(define|include|ifn?def|endif|elif|else|if)" 
+# color green "\<(float|double|char|int|short|long|enum|void|static|const|struct|union|typedef|extern|signed|unsigned|inline)\>"
+# color brightyellow "\<(for|if|while|do|else|case|switch|break)\>"
+# color brightcyan "^ *# *(define|undef|include|ifn?def|endif|elif|else|if)"
 ##
 ## You will in general want your comments and strings to come last,
 ## because syntax highlighting rules will be applied in the order they