From 1c96a4830ff2ac68b1a508d2988b69213eba553a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Pont?= Date: Wed, 2 Oct 2019 11:08:36 +0200 Subject: [PATCH] Fix regex error in Rnw.nanorc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An error would show up: Error en /home/user/.nano/Rnw.nanorc en la línea 19: Regex «([a-zA-Z0-9_-.$]*)\(» incorrecta: Final de rango inválido The regex was invalid. --- Rnw.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rnw.nanorc b/Rnw.nanorc index 389e5bc..75e6f6e 100644 --- a/Rnw.nanorc +++ b/Rnw.nanorc @@ -16,7 +16,7 @@ color green "(class|extends|goto) ([a-zA-Z0-9_]*)" color green "[^a-z0-9_-]{1}(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|endif|foreach|endforeach|@|while|public|private|protected|return|true|false|null|TRUE|FALSE|NULL|const|static|extends|as|array|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|namespace|use)[^a-z0-9_-]{1}" # Functions -color blue "([a-zA-Z0-9_-.$]*)\(" +color blue "([a-zA-Z0-9_\-$\.]*)\(" # Variables color magenta "[a-zA-Z_0-9]* <\-"