Add nano syntax highlighting

This commit is contained in:
Bigjango13 2024-01-17 01:30:14 -05:00
parent 930eae47c6
commit d3281e21d1

View File

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