From d72ac90edca505dbfdd99b0f3b54f3f574da22ba Mon Sep 17 00:00:00 2001 From: Mal Date: Mon, 6 Jun 2022 10:13:15 +0200 Subject: [PATCH] JS: case and static statements added --- javascript.nanorc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/javascript.nanorc b/javascript.nanorc index 5062a0d..56da03a 100644 --- a/javascript.nanorc +++ b/javascript.nanorc @@ -19,19 +19,19 @@ color orange "function \w+\(.*\)" color cyan "\w+\(" # Function/method names on definitions -color green "function \w+\(" +color green "(function|static) \w+\(" color green "@\w+" color green "^[[:blank:]]+\w+\(.*(\)| \{)$" # Parameters inside method definitions -color orange "\([a-zA-Z_0-9,= ]+\)( *\{|$)" +color orange "\([a-zA-Z_0-9,= '#]+\)( *\{|$)" color white " \([a-zA-Z_0-9,= ]+\)( *\{|$)" # Class initialization color white "new \w+\(" # Statements -color brightcyan "\<(class|function|extends|import|export|default|from|new|var|let|const|return|for|while|in|of|if|elseif|else|throw|continue|break|try|catch|switch|static|typeof|do|async|await)\>" +color brightcyan "\<(class|function|extends|import|export|default|from|new|var|let|const|return|for|while|in|of|if|elseif|else|throw|continue|break|try|catch|switch|case|static|typeof|do|async|await)\>" # Operators color red "(=|ยท|\/|\+|-|\*|\!|>|<|:|\?|&|\|)"