]> git.wh0rd.org Git - nano.git/commitdiff
Using character classes correctly.
authorBenno Schulenberg <bensberg@justemail.net>
Sun, 3 May 2015 15:47:05 +0000 (15:47 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Sun, 3 May 2015 15:47:05 +0000 (15:47 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5223 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
doc/syntax/groff.nanorc
doc/syntax/php.nanorc

index cfe5075edadbb38169bf23303be6ee33e20f1bc4..30402b444f771a67fa263f198afe72983efe7c3f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
        * src/browser.c (browser_refresh): Display an ellipsis only when the
        filename is longer than the available space, not when it still fits.
        * src/browser.c, src/nano.c: Adjust a few comments and line wrappings.
+       * doc/syntax/groff.nanorc: Use character classes correctly.
 
 2015-04-28  Benno Schulenberg  <bensberg@justemail.net>
        * src/color.c (color_update): Match the file regex of a syntax against
index 70f641d3197b4920a88af4b4efbdda1c752ae45a..5f57f8e6554c05f60c304bb7edd4ade9ab2e3f90 100644 (file)
@@ -3,7 +3,7 @@
 syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
 
 # The argument of .ds or .nr
-color cyan "^\.(ds|nr) [^[[:space:]]]*"
+color cyan "^\.(ds|nr) [^[:space:]]*"
 # Single-character escapes
 color brightmagenta "\\."
 # The argument of \f or \s in the same color
@@ -12,7 +12,7 @@ color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]"
 color cyan "(\\|\\\\)n(.|\(..)"
 color cyan start="(\\|\\\\)n\[" end="]"
 # Requests
-color brightgreen "^\.[[:space:]]*[^[[:space:]]]*"
+color brightgreen "^\.[[:space:]]*[^[:space:]]*"
 # Comments
 color yellow "^\.\\".*$"
 # Strings
index e3c4f1fa1e747733040f54cfea3c3920c4952a34..ea9aceeda58787091a769211cf7f4db24ffc1180 100644 (file)
@@ -25,7 +25,7 @@ color brightyellow "<[^=       ]*>" ""(\.|[^"])*""
 color brightblue "//.*"
 color brightblue start="/\*" end="\*/"
 ##color blue start="<" end=">"
-##color red "&[^;[[:space:]]]*;"
+##color red "&[^;[:space:]]*;"
 
 # Trailing whitespace.
 color ,green "[[:space:]]+$"