Add nano syntax highlighting #5

Merged
TheBrokenRail merged 1 commits from :nano-syntax into master 2024-01-20 08:46:18 +00:00

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