diff --git a/syntax/javascript.nanorc b/syntax/javascript.nanorc index f6a541525845d159a746f6c93953bf9cfc2ed962..4324450d25dfa79af6ad121e8356aaed44679ce1 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|class|const|extends|function|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 brightyellow "\<(await|export|import|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="\*/"