From bf8e66512054ebd7c9ceffcaff8d3bacd63e708f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <43345275+ssmid@users.noreply.github.com> Date: Mon, 7 Jun 2021 11:32:30 +0200 Subject: [PATCH] nano syntax highlighting for himBHsstatements --- resources/editor_plugins/nano/c3.nanorc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/resources/editor_plugins/nano/c3.nanorc b/resources/editor_plugins/nano/c3.nanorc index 6e3f362c0..43249135a 100644 --- a/resources/editor_plugins/nano/c3.nanorc +++ b/resources/editor_plugins/nano/c3.nanorc @@ -14,15 +14,18 @@ color white ".*" color magenta "\<[A-Za-z_]+\>\(" color normal "\(|\)" -# @ annotations -color brightred "@\<[A-Za-z_]+\>" - # Types color green "\<(virtual|void|bool|quad|double|float|long|ulong|int|uint|short|ushort|ichar|char|isize|usize|iptr|uptr|iptrdiff|uptrdiff|half)\>" # Keywords color yellow "\<(alias|as|asm|assert|attribute|break|case|catch|const|continue|default|defer|define|do|else|enum|extern|error|false|for|foreach|func|generic|if|import|interface|macro|module|nextcase|null|private|return|static|struct|switch|true|try|typeid|typeof|union|while|var|volatile)\>" +# $ Statements +color brightyellow "\$\<(assert|case|default|elif|else|endif|endswitch|for|if|switch|unreachable)\>" + +# @ Attributes +color brightred "@\<[A-Za-z_]+\>" + # Strings color brightblack "\"[^"]*\""