]> git.wh0rd.org Git - nano.git/commitdiff
add Mike Frysinger's GCC builtins regex to the "c-file" regexes
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 27 Jun 2005 02:56:59 +0000 (02:56 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 27 Jun 2005 02:56:59 +0000 (02:56 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2772 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
doc/nanorc.sample

index 2441b2867b324006c9f4984ed5aa6d3d32f55239..8d181dfd9baafb88b12e511e6eb9d7183cc35770 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -368,6 +368,7 @@ CVS code -
          this to other regex strings whenever possible.
        - Move some overly long split-up regex strings that cover
          similar areas onto the same line. (DLR)
+       - Add GCC builtins to the "c-file" regexes. (Mike Frysinger)
 - nanorc.5:
        - Update the description of how the "color" regex works. (DLR)
        - Clarify descriptions of the characters that aren't allowed
index b204dcdaeb2f422d7d3e7c5bf435756a26a2421f..ea954caf99c80b127382dda35d9caa4581b21903 100644 (file)
 # color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)"
 # color brightmagenta "'([^\]|(\\['abfnrtv\\]))'" "'\\(([0-7][0-7]?)|([0-3][0-7][0-7]))'" "'\\x[0-9A-Fa-f][0-9A-Fa-f]?'"
 ##
+## GCC builtins
+##
+# color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(asm|builtin|inline|restrict|typeof)__"
+##
 ## You will in general want your comments and strings to come last,
 ## because syntax highlighting rules will be applied in the order they
 ## are read in.