[Pcre-svn] [634] code/trunk: Very minor tidy to pcre2grep, …

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [634] code/trunk: Very minor tidy to pcre2grep, plus fix typos in comments.
Revision: 634
          http://www.exim.org/viewvc/pcre2?view=rev&revision=634
Author:   ph10
Date:     2016-12-29 16:29:05 +0000 (Thu, 29 Dec 2016)
Log Message:
-----------
Very minor tidy to pcre2grep, plus fix typos in comments.


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/src/pcre2grep.c
    code/trunk/testdata/grepoutput


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2016-12-29 15:57:38 UTC (rev 633)
+++ code/trunk/ChangeLog    2016-12-29 16:29:05 UTC (rev 634)
@@ -269,7 +269,10 @@
 40. The callout_error modifier has been added to pcre2test to make it possible 
 to return PCRE2_ERROR_CALLOUT from a callout.


+41. A minor change to pcre2grep: colour reset is now "<esc>[0m" instead of
+"<esc>[00m".

+
Version 10.22 29-July-2016
--------------------------


Modified: code/trunk/src/pcre2grep.c
===================================================================
--- code/trunk/src/pcre2grep.c    2016-12-29 15:57:38 UTC (rev 633)
+++ code/trunk/src/pcre2grep.c    2016-12-29 16:29:05 UTC (rev 634)
@@ -693,7 +693,7 @@
 {
 if (do_colour) fprintf(stdout, "%c[%sm", 0x1b, colour_string);
 FWRITE(buf, 1, length, stdout);
-if (do_colour) fprintf(stdout, "%c[00m", 0x1b);
+if (do_colour) fprintf(stdout, "%c[0m", 0x1b);
 }


 /* End of Unix-style or native z/OS environment functions. */
@@ -1686,7 +1686,7 @@
       }
     else if (*string == '{')
       {
-      /* Must be a decimal number in parenthesis, e.g: (5) or (38) */
+      /* Must be a decimal number in braces, e.g: {5} or {38} */
       string++;
       length--;


@@ -1708,7 +1708,7 @@
         }
       while (*string >= '0' && *string <= '9');


-      /* Syntax error: close paren is missing. */
+      /* Syntax error: closing brace is missing. */
       if (*string != '}') return 0;
       }



Modified: code/trunk/testdata/grepoutput
===================================================================
(Binary files differ)