nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit f769465284eb192e87a40b89323ee28d066599a3
parent 1b5b52d2e43eb56c3ff5c4c123733a3d4a475c28
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 25 Dec 2017 15:40:05 +0100

syntax: javascript: add some keywords, and sort them more logically

Also, remove angle-bracketed "strings" -- they don't exist.

Diffstat:
Msyntax/javascript.nanorc | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/syntax/javascript.nanorc b/syntax/javascript.nanorc @@ -4,12 +4,12 @@ syntax "javascript" "\.js$" comment "//" 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 brightyellow "\<(do|while|if|else|switch|case|default|for|each|in|of|with)\>" +color brightyellow "\<(await|export|import|throw|try|catch|finally|new|delete)\>" +color magenta "\<(break|continue|return|yield)\>" # Strings. -color brightmagenta "<[^= ]*>" ""(\\.|[^"])*"" "'(\\.|[^'])*'" "`(\\.|[^`])*`" +color brightmagenta ""(\\.|[^"])*"" "'(\\.|[^'])*'" "`(\\.|[^`])*`" # Comments. color brightblue "(^|[[:space:]])//.*" color brightblue start="/\*" end="\*/"