From c9935112c8b66e23d2acd7584fecd8e99a281b14 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 25 Apr 2011 12:22:55 -0400 Subject: .compizsnap, .nanorc Track .compizsnap/* files (hurpdurp), only tracked the directory before. Use *.nanorc files from the nano 2.2.6 distribution. --- share/nano/asm.nanorc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 share/nano/asm.nanorc (limited to 'share/nano/asm.nanorc') diff --git a/share/nano/asm.nanorc b/share/nano/asm.nanorc new file mode 100644 index 0000000..e94ee90 --- /dev/null +++ b/share/nano/asm.nanorc @@ -0,0 +1,17 @@ +## Here is an example for assembler. +## +syntax "asm" "\.(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)" +icolor brightred "^[[:space:]]*[.0-9A-Z_]*:" +color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)" +## Highlight strings (note: VERY resource intensive) +color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" +color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" +## Highlight comments +color brightblue "//.*" +color brightblue start="/\*" end="\*/" +## Highlight trailing whitespace +color ,green "[[:space:]]+$" -- cgit v1.2.3-2-g168b