From 16ff9d01339a7ecd859ee619a8496ca878a3eb70 Mon Sep 17 00:00:00 2001 From: ggujjula <43194746+ggujjula@users.noreply.github.com> Date: Tue, 31 May 2022 00:59:52 -0500 Subject: Add documentation for option '--yymore' --- doc/flex.texi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/flex.texi b/doc/flex.texi index a4b5897..9224d98 100755 --- a/doc/flex.texi +++ b/doc/flex.texi @@ -3172,6 +3172,17 @@ also generates a @code{yyFlexLexer::yylex()} member function that emits a run-time error (by invoking @code{yyFlexLexer::LexerError())} if called. @xref{Cxx}. +@anchor{option-yymore} +@opindex ---yymore +@opindex yymore +@item --yymore, @code{%option yymore} +tells flex to generate a scanner with logic to append the next token to the +currently matched text. This option is enabled automatically if flex detects +the use of @code{yymore()} in the scanner rules. However, this option must be +set explicitly if @code{yymore()} is used more indirectly to avoid a compile +time error. +@xref{Actions}. @xref{Diagnostics}. + @end table @node Options for Scanner Speed and Size, Debugging Options, Code-Level And API Options, Scanner Options -- cgit v1.2.1