]> git.wh0rd.org Git - nano.git/commitdiff
in doc/syntax/c.nanorc, remove redundancy from the file extension
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 3 Aug 2006 02:44:22 +0000 (02:44 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 3 Aug 2006 02:44:22 +0000 (02:44 +0000)
regexes

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

ChangeLog
doc/syntax/c.nanorc

index f0267cbd573f4c1f449ae5422b982081ee2bae2f..42072a7f7a7b280ee19aebd363dca3348faeda7f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -210,6 +210,7 @@ CVS code -
 - doc/syntax/c.nanorc:
        - Since .i and .ii are preprocessed C and C++ output, colorize
          them here. (Mike Frysinger)
+       - Remove redundancy from the file extension regexes. (DLR)
 - doc/syntax/ruby.nanorc:
        - Add missing blank line after the first comment, for
          consistency. (DLR)
index e90c623adb7b87d86ef75ba3857fbed8d1e054f3..d0b8b1eecdcdd341b70721b6977f3ca59513191d 100644 (file)
@@ -1,6 +1,6 @@
 ## Here is an example for C/C++.
 ##
-syntax "c" "\.(c|C|cc|cpp|cxx|h|H|hh|hpp|hxx|i|ii)$"
+syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$"
 color brightred "\<[A-Z_][0-9A-Z_]+\>" 
 color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|signed|unsigned|inline)\>"
 color green "\<(u_?)?int(8|16|32|64|ptr)_t\>"