nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] [PATCH] syntax: javascript: add newer keywords/syntax


From: Mike Frysinger
Subject: [Nano-devel] [PATCH] syntax: javascript: add newer keywords/syntax
Date: Mon, 18 Dec 2017 14:26:21 -0500

---
 syntax/javascript.nanorc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/syntax/javascript.nanorc b/syntax/javascript.nanorc
index f6a541525845..415cb4bfb40f 100644
--- a/syntax/javascript.nanorc
+++ b/syntax/javascript.nanorc
@@ -4,14 +4,14 @@ syntax "javascript" "\.js$"
 comment "//"
 
 color brightred "\<[A-Z_][0-9A-Z_]+\>"
-color green "\<(const|function|let|this|typeof|var|void)\>"
+color green 
"\<(async|await|class|const|export|extends|function|import|let|this|typeof|var|void)\>"
 color brightyellow "\<(for|if|while|with|do|else|case|default|switch)\>"
 color brightyellow "\<(export|try|throw|catch|new|delete)\>"
 color magenta "\<(continue|break|return|yield)\>"
 color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" 
"'\\x[0-9A-Fa-f]{1,2}'"
 
 # Strings.
-color brightyellow "<[^=       ]*>" ""(\\.|[^"])*"" "'(\\.|[^'])*'"
+color brightyellow "<[^=       ]*>" ""(\\.|[^"])*"" "'(\\.|[^'])*'" 
"`(\\.|[^`])*`"
 # Comments.
 color brightblue "//.*"
 color brightblue start="/\*" end="\*/"
-- 
2.12.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]