symbol-processor/syntax-highlighting/def.nanorc
2024-04-03 03:18:51 -04:00

18 lines
417 B
Plaintext

syntax def "\.def$"
comment "//"
# Commands
color magenta "\<(extends|size|vtable(-size|-destructor-offset)?|property|static-property(-array)?|((static|virtual)-)?method|constructor)\>"
# Types
color green "\<(char|uchar|short|ushort|int|uint|float|bool|void|std::(string|vector|map))\>"
# Numbers
color yellow "0x[a-f0-9]+"
# Comments
color brightblue "//.*"
# Trailing whitespace.
color ,green "[[:space:]]+$"