From 466a586e17c3efbad5732b6e4b788262f916377a Mon Sep 17 00:00:00 2001 From: davidhcefx Date: Mon, 26 Feb 2024 00:47:03 +0800 Subject: [PATCH] fix(lua): update escape and adjust coloring - Numbers and escapes: magenta --- lua.nanorc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua.nanorc b/lua.nanorc index bba7284..7b91d7b 100644 --- a/lua.nanorc +++ b/lua.nanorc @@ -53,9 +53,9 @@ color brightmagenta "\<(false|nil|true)\>" color brightgreen "(\<(dofile|require|include)|%q|%!|%Q|%r|%x)\>" # Numbers (hex and decimal with scientific notation) -#color red "\<(0[xX](([0-9A-Fa-f]+\.[0-9A-Fa-f]*)|(\.?[0-9A-Fa-f]+))([pP][-+]?[0-9]+)?)\>" -#color red "\<((([0-9]+\.[0-9]*)|(\.?[0-9]+))([eE][-+]?[0-9]+)?)\>" -color red "\<((0[xX](([0-9A-Fa-f]+\.[0-9A-Fa-f]*)|(\.?[0-9A-Fa-f]+))([pP][-+]?[0-9]+)?)|((([0-9]+\.[0-9]*)|(\.?[0-9]+))([eE][-+]?[0-9]+)?))\>" +#color magenta "\<(0[xX](([0-9A-Fa-f]+\.[0-9A-Fa-f]*)|(\.?[0-9A-Fa-f]+))([pP][-+]?[0-9]+)?)\>" +#color magenta "\<((([0-9]+\.[0-9]*)|(\.?[0-9]+))([eE][-+]?[0-9]+)?)\>" +color magenta "\<((0[xX](([0-9A-Fa-f]+\.[0-9A-Fa-f]*)|(\.?[0-9A-Fa-f]+))([pP][-+]?[0-9]+)?)|((([0-9]+\.[0-9]*)|(\.?[0-9]+))([eE][-+]?[0-9]+)?))\>" # Symbols color brightmagenta "(\(|\)|\[|\]|\{|\})" @@ -67,7 +67,7 @@ color red "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'" color red start="\s*\[\[" end="\]\]" # Escapes -#color red "\\[0-7][0-7][0-7]|\\x[0-9a-fA-F][0-9a-fA-F]|\\[abefnrs]|(\\c|\\C-|\\M-|\\M-\\C-)." +color magenta "\\([abfnrtvz'\"]|[0-9]{1,3}|x[0-9a-fA-F][0-9a-fA-F]|u\{[0-9a-fA-F]+\})" # Shebang color brightcyan "^#!.*"