symbol-processor/syntax-highlighting/nano/symbol-processor.nanorc

22 lines
500 B
Plaintext
Raw Permalink Normal View History

2024-01-17 06:30:14 +00:00
syntax def "\.def$"
comment "//"
# Commands
2024-09-21 01:30:38 +00:00
color magenta "\<(extends|size|vtable(-size|-destructor-offset)?|property|static-property|((static|virtual)-)?method|constructor|mark-as-simple)\>"
2024-01-17 06:30:14 +00:00
# Types
2024-07-14 09:03:18 +00:00
color green "\<((u?(char|short|int))|float|bool|void|std::(string|vector|map))\>"
2024-01-17 06:30:14 +00:00
# Numbers
color yellow "0x[a-f0-9]+"
2024-07-14 09:03:18 +00:00
# Non-hex numbers
color red " [0-9][a-f0-9]+;"
2024-01-17 06:30:14 +00:00
# Comments
color brightblue "//.*"
# Whitespace.
color normal "[[:space:]]+"
2024-01-17 06:30:14 +00:00
# Trailing whitespace.
color ,green "[[:space:]]+$"