diff options
author | John Millaway <john43@users.sourceforge.net> | 2006-03-28 17:56:31 +0000 |
---|---|---|
committer | John Millaway <john43@users.sourceforge.net> | 2006-03-28 17:56:31 +0000 |
commit | f6faf861a7f39e893f502107a6c767aadc82ac49 (patch) | |
tree | 2e9dca2026811200b37ff974a12ec6232aac2f65 /doc | |
parent | f1f579a3b404e67c0c4410676330294bb6c22e7e (diff) |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/flex.texi | 6 |
1 files changed, 5 insertions, 1 deletions
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 ) |