]> git.wh0rd.org Git - nano.git/commitdiff
add Mike Frysinger's regexes for assembler files
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 26 Jun 2005 03:32:03 +0000 (03:32 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Sun, 26 Jun 2005 03:32:03 +0000 (03:32 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2764 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
doc/nanorc.sample

index 9e11e26f9a158857ad5713b07714b9ddf3b29a9d..2858533df2236d7f7b347e10de6ffe143b6c9521 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -356,6 +356,7 @@ CVS code -
        - Add "cxx" and "hxx" to the list of extensions that the
          "c-file" regexes apply to, and add "warning" and "error" to
          them as well. (Mike Frysinger)
+       - Add regexes for assembler files. (Mike Frysinger)
        - In the preprocessor directives regex string in the "c-file"
          regexes, cover more whitespace characters than just " " by
          using "[[:space:]]" instead. (Mike Frysinger)  DLR: Extend
index f099648a54e9d962f449d563bf12f678da97a993..8e31adae30708d1a3423ab4e782d4c0086254666 100644 (file)
 # color brightwhite "\\f[BIPR]"
 # color yellow "\.(br|DS|RS|RE|PD)"
 
+## Here is an example for assembler
+##
+# syntax "asm-file" "\.(S|s|asm)$"
+# color red "\<[A-Z_]{2,}\>"
+# color brightgreen "\.(data|subsection|text)"
+# color green "\.(align|file|globl|global|hidden|section|size|type|weak)"
+# color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)"
+# color brightred "^[[:space:]]*[._A-Za-z0-9]*:"
+# color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)"
+## Highlight strings (note: VERY resource intensive)
+# color brightyellow "<[^=[[:space:]]]*>" ""(\\.|[^\"])*""
+# color brightyellow start=""(\\.|[^\"])*\\[[:space:]]*$" end="^(\\.|[^\"])*""
+## Highlight comments
+# color brightblue "//.*"
+# color brightblue start="/\*" end="\*/"
+
 ## Here is an example for your .nanorc
 ##
 # syntax "nanorc" "(\.|/|)nanorc$"