From 34b74896f9cef47c765c8fbd3263b2faf9c85803 Mon Sep 17 00:00:00 2001 From: Bigjango13 Date: Wed, 17 Jan 2024 01:30:14 -0500 Subject: [PATCH] Add nano syntax highlighting --- syntax-highlighting/def.nanorc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 syntax-highlighting/def.nanorc diff --git a/syntax-highlighting/def.nanorc b/syntax-highlighting/def.nanorc new file mode 100644 index 0000000..f4ff968 --- /dev/null +++ b/syntax-highlighting/def.nanorc @@ -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:]]+$"