2006-06-01 21:23:28 +04:00
|
|
|
## Here is an example for assembler.
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2006-06-01 21:23:28 +04:00
|
|
|
syntax "asm" "\.(S|s|asm)$"
|
2011-02-13 07:23:10 +03:00
|
|
|
magic "[Aa]ssembl(y|er)"
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2006-06-01 21:23:28 +04:00
|
|
|
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)"
|
2014-05-17 00:21:34 +04:00
|
|
|
|
|
|
|
# Strings.
|
2006-06-01 21:23:28 +04:00
|
|
|
color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
|
2014-05-17 00:21:34 +04:00
|
|
|
# Multiline strings (note: VERY resource intensive).
|
2006-06-01 21:23:28 +04:00
|
|
|
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
2014-05-17 00:21:34 +04:00
|
|
|
|
|
|
|
# Comments.
|
2006-06-01 21:23:28 +04:00
|
|
|
color brightblue "//.*"
|
|
|
|
color brightblue start="/\*" end="\*/"
|
2014-05-17 00:21:34 +04:00
|
|
|
|
|
|
|
# Trailing whitespace.
|
2007-04-12 02:18:16 +04:00
|
|
|
color ,green "[[:space:]]+$"
|