asm.nanorc (801B)
1 ## Syntax highlighting for assembler. 2 3 ## Original author: Mike Frysinger 4 ## License: GPL version 3 or newer 5 6 syntax asm "\.(S|s|asm)$" 7 magic "assembler source" 8 comment "//" 9 10 color red "\<[[:alpha:]_]{2,}\>" 11 color brightgreen "\.(data|subsection|text)\>" 12 color green "\.(align|file|globl|global|hidden|section|size|type|weak)\>" 13 color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)\>" 14 color brightred "^[[:blank:]]*[[:alnum:]_.]*:" 15 color brightcyan "^[[:blank:]]*#[[:blank:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)\>" 16 17 # Strings and names of included files. 18 color brightyellow ""([^"\]|\\.)*"|<[^= ]*>" 19 20 # Comments. 21 color brightblue "//.*" 22 color brightblue start="/\*" end="\*/" 23 24 # Trailing whitespace. 25 color ,green "[[:space:]]+$"