Add nano syntax highlighting

This commit is contained in:
Bigjango13 2024-01-17 01:30:14 -05:00 committed by TheBrokenRail
parent 2898fba312
commit 34b74896f9
1 changed files with 17 additions and 0 deletions

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:]]+$"