1 ## Here is an example for assembler.
3 syntax "ASM" "\.(S|s|asm)$"
4 magic "assembler source"
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="^(\\.|[^"])*""
17 color brightblue "^\s*//.*"
18 color brightblue start="/\*" end="\*/"
19 ## Highlight trailing whitespace
20 color ,green "[[:space:]]+$"