unmatched right bracket, rather than an extra, falsely-matching
quote in a comment. Patch by Akim Demaille.
dnl Initially derived from code in GNU grep.
dnl Mostly written by Jim Meyering.
dnl Initially derived from code in GNU grep.
dnl Mostly written by Jim Meyering.
const char *s;
struct re_registers regs;
re_set_syntax (RE_SYNTAX_POSIX_EGREP);
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, ®ex);
- /* This bracket ']' helps quote the unbalanced expression above. */
+ [s = re_compile_pattern ("a[[:@:>@:]]b\n", 9, ®ex);]
/* This should fail with _Invalid character class name_ error. */
if (!s)
exit (1);
/* This should fail with _Invalid character class name_ error. */
if (!s)
exit (1);