From c60735fbb8448eff772caefa90ae553e7e0b7623 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 22 Apr 2008 14:19:27 -0600 Subject: Support unbalanced () in AT_SETUP by adding two new quadrigraphs. * bin/autom4te.in (handle_output): Substitute @{:@ and @:}@. (handle_traces): Likewise. * lib/m4sugar/m4sugar.m4 (m4_qlen): Account for new quadrigraphs. * tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Add new tests. * doc/autoconf.texi (Quadrigraphs): Document them. (Evaluation Macros) : Enhance documentation. (Text processing Macros) : Document cases where quadrigraphs can help for problemetic unbalanced parentheses. (Pretty Help Strings) : Likewise. (Writing Testsuites) : Likewise. (Limitations of Builtins) : Consolidate text on unbalanced parentheses, and add an example of creative comments. * NEWS: Document the addition. Reported by Joel E. Denny. Signed-off-by: Eric Blake --- bin/autom4te.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') diff --git a/bin/autom4te.in b/bin/autom4te.in index 1f9aee8d..685df41a 100644 --- a/bin/autom4te.in +++ b/bin/autom4te.in @@ -575,6 +575,8 @@ sub handle_output ($$) s/__oline__/$./g; s/\@<:\@/[/g; s/\@:>\@/]/g; + s/\@\{:\@/(/g; + s/\@:\}\@/)/g; s/\@S\|\@/\$/g; s/\@%:\@/#/g; @@ -856,6 +858,8 @@ EOF # It makes no sense to try to transform __oline__. s/\@<:\@/[/g; s/\@:>\@/]/g; + s/\@\{:\@/(/g; + s/\@:\}\@/)/g; s/\@S\|\@/\$/g; s/\@%:\@/#/g; s/\@&t\@//g; -- cgit v1.2.1