Commit dc9c40a5 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

Brand Huntsman's improved nanorc regexes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1545 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent e0a9f50a
No related merge requests found
Showing with 15 additions and 10 deletions
+15 -10
...@@ -94,8 +94,8 @@ CVS code - ...@@ -94,8 +94,8 @@ CVS code -
- nanorc.sample: - nanorc.sample:
- Remove duplicate "historylog" entry, remove "keypad" entry, - Remove duplicate "historylog" entry, remove "keypad" entry,
and add "rebinddelete" entry. (DLR) and add "rebinddelete" entry. (DLR)
- Update the regexes for nanorc files. (Brand Huntsman, slightly - Update and add comments to the regexes for nanorc files.
modified by DLR) (Brand Huntsman)
- Fix an attempt at a bright background color in the sample Java - Fix an attempt at a bright background color in the sample Java
source regexes. (DLR) source regexes. (DLR)
- Since tabs are shown as groups of spaces, they are interpreted - Since tabs are shown as groups of spaces, they are interpreted
......
...@@ -197,11 +197,16 @@ ...@@ -197,11 +197,16 @@
## Here is an example for your .nanorc ## Here is an example for your .nanorc
## ##
# syntax "nanorc" "(\.)?nanorc$" #syntax "nanorc" "(\.|/|)nanorc$"
# color brightwhite "^ *(set|unset|syntax|color).*$" ## highlight possible errors and parameters
# color cyan "^ *(set|unset) +(autoindent|backup|const|cut|fill|historylog|multibuffer|noconvert|nofollow|nohelp|nowrap|operatingdir|preserve|quotestr|rebinddelete|regexp|smooth|speller|suspend|tabsize|tempfile|view)" #color brightwhite "^ *(set|unset|syntax|color).*$"
# color green "^ *(set|unset|syntax)\>" ## set, unset and syntax
# color yellow "^ *color +(bright)?(white|black|red|blue|green|yellow|magenta|cyan)(,(white|black|red|blue|green|yellow|magenta|cyan))?\>" #color cyan "^ *(set|unset) +(autoindent|backup|const|cut|fill|historylog|multibuffer|noconvert|nofollow|nohelp|nowrap|operatingdir|preserve|quotestr|rebinddelete|regexp|smooth|speller|suspend|tabsize|tempfile|view)"
# color magenta "^ *color\>" "\<(start|end)=" #color green "^ *(set|unset|syntax)\>"
# color white "\"(\\.|[^\"])*\"" ## colors
# color blue "^ *#.*$" #color yellow "^ *color +(bright)?(white|black|red|blue|green|yellow|magenta|cyan)(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
#color magenta "^ *color\>" "\<(start|end)="
## strings
#color white "\"(\\.|[^\"])*\""
## comments
#color blue "^ *#.*$"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment