]> git.wh0rd.org Git - nano.git/commitdiff
in nanorc.sample, replace instances of \" with ", since quotes inside
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 30 Mar 2006 18:12:50 +0000 (18:12 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 30 Mar 2006 18:12:50 +0000 (18:12 +0000)
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-d3aeb78583b8

ChangeLog
doc/nanorc.sample

index 95d7caedf85407e0f0c9871846e52ada94408b6d..4a4ee31bc3b30f108fb4f2aa6409a38974441554 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,8 @@ CVS code -
 - doc/nanorc.sample:
        - Tweak the "c-file" regex for characters to accept '"' again,
          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
 - General:
index 3db3f921466c483851400a40bee908b7cc81775c..cc8b65a13bf5ff6fefa28769bc65f83a44ff8ff8 100644 (file)
 ## because syntax highlighting rules will be applied in the order they
 ## are read in.
 ##
-# color brightyellow "<[^=     ]*>" ""(\\.|[^\"])*""
+# color brightyellow "<[^=     ]*>" ""(\\.|[^"])*""
 ##
 ## 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
 # color brightblue "//.*"
 ## Requests
 # color brightgreen "^\.[[:space:]]*[^[[:space:]]]*"
 ## Comments
-# color yellow "^\.\\\".*$"
+# color yellow "^\.\\".*$"
 ## Strings
 # color green "(\\|\\\\)\*."
 # color green "(\\|\\\\)\*\(.."
 # 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 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 blue "//.*"
 # color blue start="/\*" end="\*/"
 # icolor brightred "^[[:space:]]*[._A-Z0-9]*:"
 # color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)"
 ## Highlight strings (note: VERY resource intensive)
-# color brightyellow "<[^=     ]*>" ""(\\.|[^\"])*""
-# color brightyellow start=""(\\.|[^\"])*\\[[:space:]]*$" end="^(\\.|[^\"])*""
+# color brightyellow "<[^=     ]*>" ""(\\.|[^"])*""
+# color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
 ## Highlight comments
 # color brightblue "//.*"
 # color brightblue start="/\*" end="\*/"
 # 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]+\}?"
 # color yellow "#.*$"
-# color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'"
+# color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
 
 ## Here is an example for your .nanorc
 ##
 # 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)="
 ## strings
-# icolor white "\"(\\.|[^\"])*\""
+# icolor white ""(\\.|[^"])*""
 ## comments
 # icolor blue "^[[:space:]]*#.*$"