Add nano syntax highlighting
This commit is contained in:
parent
2898fba312
commit
34b74896f9
17
syntax-highlighting/def.nanorc
Normal file
17
syntax-highlighting/def.nanorc
Normal 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:]]+$"
|
Loading…
Reference in New Issue
Block a user