nano

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

commit aae752912ea8142a540de901e1a203d679c12583
parent 3c695664ecf25ec1b67c9918db57b4075e7f3f89
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 23 Oct 2019 10:00:55 +0200

syntax: javascript: colorize also special values 'null' and 'undefined'

This addresses one half of https://savannah.gnu.org/patch/?9865.
Original-patch-by: Ryan Westlund <rlwestlund@gmail.com>

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

diff --git a/syntax/javascript.nanorc b/syntax/javascript.nanorc @@ -13,6 +13,8 @@ color magenta "\<(break|continue|return|yield)\>" # Octal/decimal and hexadecimal numbers. color cyan "\<[0-9]+\>" "\<0x[0-9A-Fa-f]+\>" +# Special values. +color cyan "\<(null|undefined)\>" # Strings. color brightmagenta ""(\\.|[^"])*"" "'(\\.|[^'])*'" "`(\\.|[^`])*`"