This is the first push to this repo with my dotfiles
[dotfilesold/.git] / .nano / asm.nanorc
1 ## Here is an example for assembler.
2 ##
3 syntax "ASM" "\.(S|s|asm)$"
4 magic "assembler source"
5 comment "//"
6
7 color red "\<[A-Z_]{2,}\>"
8 color brightgreen "\.(data|subsection|text)"
9 color green "\.(align|file|globl|global|hidden|section|size|type|weak)"
10 color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)"
11 icolor brightred "^[[:space:]]*[.0-9A-Z_]*:"
12 color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)"
13 ## Highlight strings (note: VERY resource intensive)
14 color brightyellow "<[^=        ]*>" ""(\\.|[^"])*""
15 color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
16 ## Highlight comments
17 color brightblue "^\s*//.*"
18 color brightblue start="/\*" end="\*/"
19 ## Highlight trailing whitespace
20 color ,green "[[:space:]]+$"