diff --git a/syntax/javascript.nanorc b/syntax/javascript.nanorc
index 15d63f12527302a577872654cdf6c864b37a80d5..7b4dcdae98730c53b5460ecab83ee9c00b04b1c5 100644
--- a/syntax/javascript.nanorc
+++ b/syntax/javascript.nanorc
@@ -3,15 +3,13 @@
 syntax "javascript" "\.js$"
 comment "//"
 
-color brightred "\<[A-Z_][0-9A-Z_]+\>"
 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 "\<(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 brightmagenta "<[^= 	]*>" ""(\\.|[^"])*"" "'(\\.|[^'])*'" "`(\\.|[^`])*`"
 # Comments.
 color brightblue "(^|[[:space:]])//.*"
 color brightblue start="/\*" end="\*/"