From 8aaecabe59c5e6144b49597ee818ee8ed23a0afc Mon Sep 17 00:00:00 2001 From: Huub de Beer Date: Sun, 16 Jul 2017 13:46:55 +0200 Subject: [PATCH 1/3] Added ECMAScript 2015/6/7 keywrods and types to the two JavaScript syntac files. --- javascript.nanorc | 3 +++ js.nanorc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/javascript.nanorc b/javascript.nanorc index 9a23f1e..b541c38 100644 --- a/javascript.nanorc +++ b/javascript.nanorc @@ -8,8 +8,11 @@ color cyan "\<(break|case|catch|continue|default|delete|do|else|finally)\>" color cyan "\<(for|function|get|if|in|instanceof|new|return|set|switch)\>" color cyan "\<(switch|this|throw|try|typeof|var|void|while|with)\>" color cyan "\<(null|undefined|NaN)\>" +color cyan "\<(import|as|from|export)\>" +color cyan "\<(const|let|class|extends|get|set|of|async|await)\>" color brightcyan "\<(true|false)\>" color green "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" +color green "\<(Map|WeakMap|Set|WeakSet|Promise)\>" color green "\<(Number|Object|RegExp|String)\>" color red "[-+/*=<>!~%?:&|]" color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*" diff --git a/js.nanorc b/js.nanorc index 65cf389..364a979 100644 --- a/js.nanorc +++ b/js.nanorc @@ -28,9 +28,12 @@ color yellow "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" color green "\<(break|case|catch|continue|default|delete|do|else|finally)\>" color green "\<(for|function|if|in|instanceof|new|null|return|switch)\>" color green "\<(switch|this|throw|try|typeof|undefined|var|void|while|with)\>" +color green "\<(import|as|from|export)\>" +color green "\" ## Type specifiers color red "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" +color red "\<(WeakMap|Map|WeakSet|Set|Symbol|Promise)\>" color red "\<(Number|Object|RegExp|String)\>" color red "\<(true|false)\>" From 86d6ce6dfde8d2e5541459ee12488adcab917978 Mon Sep 17 00:00:00 2001 From: Huub de Beer Date: Sun, 16 Jul 2017 13:48:35 +0200 Subject: [PATCH 2/3] Added ECMAScript 2015/6/7 keywrods and types to the two JavaScript syntac files. --- javascript.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript.nanorc b/javascript.nanorc index b541c38..b3bc951 100644 --- a/javascript.nanorc +++ b/javascript.nanorc @@ -9,7 +9,7 @@ color cyan "\<(for|function|get|if|in|instanceof|new|return|set|switch)\>" color cyan "\<(switch|this|throw|try|typeof|var|void|while|with)\>" color cyan "\<(null|undefined|NaN)\>" color cyan "\<(import|as|from|export)\>" -color cyan "\<(const|let|class|extends|get|set|of|async|await)\>" +color cyan "\<(const|let|class|extends|get|set|of|async|await|yield)\>" color brightcyan "\<(true|false)\>" color green "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" color green "\<(Map|WeakMap|Set|WeakSet|Promise)\>" From 1cabaa8e07143f5e0a872bd8211d0263d9bacc8e Mon Sep 17 00:00:00 2001 From: Huub de Beer Date: Sun, 16 Jul 2017 13:49:51 +0200 Subject: [PATCH 3/3] Added ECMAScript 2015/6/7 keywrods and types to the two JavaScript syntac files. --- javascript.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript.nanorc b/javascript.nanorc index b3bc951..84e5b15 100644 --- a/javascript.nanorc +++ b/javascript.nanorc @@ -12,7 +12,7 @@ color cyan "\<(import|as|from|export)\>" color cyan "\<(const|let|class|extends|get|set|of|async|await|yield)\>" color brightcyan "\<(true|false)\>" color green "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" -color green "\<(Map|WeakMap|Set|WeakSet|Promise)\>" +color green "\<(Map|WeakMap|Set|WeakSet|Promise|Symbol)\>" color green "\<(Number|Object|RegExp|String)\>" color red "[-+/*=<>!~%?:&|]" color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"