From 3d5e51bcd0e3e3e078ce4a86ff380339bbbb0e0d Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 20 Oct 2019 14:47:15 +0200 Subject: [PATCH] syntax: nanorc: colorize in bright red everything that is invalid Random words or mistyped keywords should not stay uncolored. --- syntax/nanorc.nanorc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/nanorc.nanorc b/syntax/nanorc.nanorc index 40f44753..a96c82c1 100644 --- a/syntax/nanorc.nanorc +++ b/syntax/nanorc.nanorc @@ -3,8 +3,8 @@ syntax nanorc "\.?nanorc$" comment "#" -# Possible errors and parameters -color brightred "^[[:space:]]*((un)?(bind|set)|include|syntax|header|magic|comment|fixer|linter|tabgives|i?color|extendsyntax).*" +# Everything that does not get recolored is invalid +color brightred ".*" # Keywords color brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(afterends|allow_insecure_backup|atblanks|autoindent|backup|backwards|boldtext|breaklonglines|casesensitive|constantshow|cutfromcursor|emptyline|finalnewline|historylog|jumpyscrolling|linenumbers|locking|morespace|mouse|multibuffer|noconvert|nohelp|nopauses|nonewlines|nowrap|positionlog|preserve|quickblank|quiet|rebinddelete|rebindkeypad|regexp|showcursor|smarthome|smooth|softwrap|suspend|tabstospaces|tempfile|trimblanks|unix|view|wordbounds|zap)\>"