From f6faf861a7f39e893f502107a6c767aadc82ac49 Mon Sep 17 00:00:00 2001 From: John Millaway Date: Tue, 28 Mar 2006 17:56:31 +0000 Subject: Extended syntax excluded for lex/posix compat mode. Comments discarded inside (?x:) patterns. Added test in test suite for comments in extended patterns. Documented syntax additions. --- doc/flex.texi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/flex.texi b/doc/flex.texi index c8ec07f..04aff51 100644 --- a/doc/flex.texi +++ b/doc/flex.texi @@ -757,7 +757,7 @@ Options may be zero or more of the characters @samp{i}, @samp{s}, or @samp{x}. @samp{x} ignores comments and whitespace in patterns. Whitespace is ignored unless it is backslash-escaped, contained within @samp{""}s, or appears inside a -character class. TODO -- Do we ignore Perl comments, C comments, or both? +character class. The following are all valid: @@ -772,6 +772,10 @@ The following are all valid: (?x:a\ b) same as ("a b") (?x:a" "b) same as ("a b") (?x:a[ ]b) same as ("a b") +(?x:a + /* comment */ + b + c) same as (abc) @end verbatim @item (?# comment ) -- cgit v1.2.3