(jm_INCLUDED_REGEX): Use a quadrigraph to represent an
authorJim Meyering <jim@meyering.net>
Sun, 24 Jun 2001 20:01:11 +0000 (20:01 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 24 Jun 2001 20:01:11 +0000 (20:01 +0000)
unmatched right bracket, rather than an extra, falsely-matching
quote in a comment.  Patch by Akim Demaille.

m4/regex.m4

index a79f03b..0eb69fc 100644 (file)
@@ -1,4 +1,4 @@
-#serial 10
+#serial 11
 
 dnl Initially derived from code in GNU grep.
 dnl Mostly written by Jim Meyering.
@@ -30,10 +30,7 @@ AC_DEFUN(jm_INCLUDED_REGEX,
            const char *s;
            struct re_registers regs;
            re_set_syntax (RE_SYNTAX_POSIX_EGREP);
-           /* These two brackets, '[[' and the one in the comment below serve
-              to quote the brackets (unbalanced) in the following line.  */
-           s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
-           /* This bracket ']' helps quote the unbalanced expression above.  */
+           [s = re_compile_pattern ("a[[:@:>@:]]b\n", 9, &regex);]
            /* This should fail with _Invalid character class name_ error.  */
            if (!s)
              exit (1);