in nanorc.sample, replace instances of \" with ", since quotes inside
string parameters don't need to be escaped with backslashes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3337 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
cdf3f22c23
commit
b8d92feb62
|
@ -12,6 +12,8 @@ CVS code -
|
||||||
- doc/nanorc.sample:
|
- doc/nanorc.sample:
|
||||||
- Tweak the "c-file" regex for characters to accept '"' again,
|
- Tweak the "c-file" regex for characters to accept '"' again,
|
||||||
as it's apparently valid. (DLR)
|
as it's apparently valid. (DLR)
|
||||||
|
- Replace instances of \" with ", since quotes inside string
|
||||||
|
parameters don't need to be escaped with backslashes. (DLR)
|
||||||
|
|
||||||
GNU nano 1.3.11 - 2006.03.30
|
GNU nano 1.3.11 - 2006.03.30
|
||||||
- General:
|
- General:
|
||||||
|
|
|
@ -208,10 +208,10 @@
|
||||||
## because syntax highlighting rules will be applied in the order they
|
## because syntax highlighting rules will be applied in the order they
|
||||||
## are read in.
|
## are read in.
|
||||||
##
|
##
|
||||||
# color brightyellow "<[^= ]*>" ""(\\.|[^\"])*""
|
# color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
|
||||||
##
|
##
|
||||||
## This string is VERY resource intensive!
|
## This string is VERY resource intensive!
|
||||||
# color brightyellow start=""(\\.|[^\"])*\\[[:space:]]*$" end="^(\\.|[^\"])*""
|
# color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
||||||
##
|
##
|
||||||
## And we want to have some nice comment highlighting too
|
## And we want to have some nice comment highlighting too
|
||||||
# color brightblue "//.*"
|
# color brightblue "//.*"
|
||||||
|
@ -251,7 +251,7 @@
|
||||||
## Requests
|
## Requests
|
||||||
# color brightgreen "^\.[[:space:]]*[^[[:space:]]]*"
|
# color brightgreen "^\.[[:space:]]*[^[[:space:]]]*"
|
||||||
## Comments
|
## Comments
|
||||||
# color yellow "^\.\\\".*$"
|
# color yellow "^\.\\".*$"
|
||||||
## Strings
|
## Strings
|
||||||
# color green "(\\|\\\\)\*."
|
# color green "(\\|\\\\)\*."
|
||||||
# color green "(\\|\\\\)\*\(.."
|
# color green "(\\|\\\\)\*\(.."
|
||||||
|
@ -280,7 +280,7 @@
|
||||||
# color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>"
|
# color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>"
|
||||||
# color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>"
|
# color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>"
|
||||||
# color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>"
|
# color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>"
|
||||||
# color red ""[^\"]*""
|
# color red ""[^"]*""
|
||||||
# color yellow "\<(true|false|null)\>"
|
# color yellow "\<(true|false|null)\>"
|
||||||
# color blue "//.*"
|
# color blue "//.*"
|
||||||
# color blue start="/\*" end="\*/"
|
# color blue start="/\*" end="\*/"
|
||||||
|
@ -318,8 +318,8 @@
|
||||||
# icolor brightred "^[[:space:]]*[._A-Z0-9]*:"
|
# icolor brightred "^[[:space:]]*[._A-Z0-9]*:"
|
||||||
# color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)"
|
# color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)"
|
||||||
## Highlight strings (note: VERY resource intensive)
|
## Highlight strings (note: VERY resource intensive)
|
||||||
# color brightyellow "<[^= ]*>" ""(\\.|[^\"])*""
|
# color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
|
||||||
# color brightyellow start=""(\\.|[^\"])*\\[[:space:]]*$" end="^(\\.|[^\"])*""
|
# color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
|
||||||
## Highlight comments
|
## Highlight comments
|
||||||
# color brightblue "//.*"
|
# color brightblue "//.*"
|
||||||
# color brightblue start="/\*" end="\*/"
|
# color brightblue start="/\*" end="\*/"
|
||||||
|
@ -335,7 +335,7 @@
|
||||||
# color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
|
# color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
|
||||||
# icolor brightred "\$\{?[_A-Z0-9]+\}?"
|
# icolor brightred "\$\{?[_A-Z0-9]+\}?"
|
||||||
# color yellow "#.*$"
|
# color yellow "#.*$"
|
||||||
# color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'"
|
# color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
|
||||||
|
|
||||||
## Here is an example for your .nanorc
|
## Here is an example for your .nanorc
|
||||||
##
|
##
|
||||||
|
@ -349,6 +349,6 @@
|
||||||
# icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
|
# icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
|
||||||
# icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)="
|
# icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)="
|
||||||
## strings
|
## strings
|
||||||
# icolor white "\"(\\.|[^\"])*\""
|
# icolor white ""(\\.|[^"])*""
|
||||||
## comments
|
## comments
|
||||||
# icolor blue "^[[:space:]]*#.*$"
|
# icolor blue "^[[:space:]]*#.*$"
|
||||||
|
|
Loading…
Reference in New Issue