commit ebeed9c013e4b1606657e4507c9c4a18b4d90ffe
parent 75dd9bee386f3291d9c4bd0f18f9887581c3322f
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 4 Nov 2019 20:49:17 +0200
tweaks: fuse two regexes into one
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/syntax/javascript.nanorc b/syntax/javascript.nanorc
@@ -12,7 +12,7 @@ color brightyellow "\<(await|export|import|throw|try|catch|finally|new|delete)\>
color magenta "\<(break|continue|return|yield)\>"
# Octal/decimal and hexadecimal numbers.
-color cyan "\<[0-9]+\>" "\<0x[0-9A-Fa-f]+\>"
+color cyan "\<([0-9]+|0x[0-9A-Fa-f]+)\>"
# Special values.
color cyan "\<(true|false|null|undefined)\>"