nanorc/asm.nanorc

18 lines
735 B
Plaintext
Raw Normal View History

2010-07-29 00:15:43 +02:00
## Here is an example for assembler.
##
syntax "ASM" "\.(S|s|asm)$"
2010-07-29 00:15:43 +02:00
color red "\<[A-Z_]{2,}\>"
2018-08-09 10:09:19 +02:00
color green "\.(data|subsection|text)"
2010-07-29 00:15:43 +02:00
color green "\.(align|file|globl|global|hidden|section|size|type|weak)"
2018-08-09 10:09:19 +02:00
color yellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)"
icolor red "^[[:space:]]*[.0-9A-Z_]*:"
color cyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)"
2010-07-29 00:15:43 +02:00
## Highlight strings (note: VERY resource intensive)
2018-08-09 10:09:19 +02:00
color yellow "<[^= ]*>" ""(\\.|[^"])*""
color yellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
2010-07-29 00:15:43 +02:00
## Highlight comments
2018-08-09 10:09:19 +02:00
color blue "//.*"
color blue start="/\*" end="\*/"
2010-07-29 00:15:43 +02:00
## Highlight trailing whitespace
color ,green "[[:space:]]+$"