]> git.lizzy.rs Git - micro.git/blob - syntax_files/asm.micro
Proper window resize handling
[micro.git] / syntax_files / asm.micro
1 ## Here is an example for assembler.
2 ##
3 syntax "ASM" "\.(S|s|asm)$"
4 color red "\b[A-Z_]{2,}\b"
5 color brightgreen "\.(data|subsection|text)"
6 color green "\.(align|file|globl|global|hidden|section|size|type|weak)"
7 color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)"
8 color brightred (i) "^[[:space:]]*[.0-9A-Z_]*:"
9 color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)"
10 ## Highlight strings (note: VERY resource intensive)
11 color brightyellow "<[^=        ]*>" ""(\\.|[^"])*""
12 color brightyellow (s) ""(\\.|[^"])*\\[[:space:]]*$.*?^(\\.|[^"])*""
13 ## Highlight brightblacks
14 color brightblue "//.*"
15 color brightblue (s) "/\*.*?\*/"
16 ## Highlight trailing whitespace
17 color ,green "[[:space:]]+$"
18