summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorggujjula <43194746+ggujjula@users.noreply.github.com>2022-05-31 00:59:52 -0500
committerggujjula <43194746+ggujjula@users.noreply.github.com>2022-05-31 01:19:35 -0500
commit16ff9d01339a7ecd859ee619a8496ca878a3eb70 (patch)
tree36e5af32957d2040d17d9516c75f5f0bb96217bc
parent74a89fd6abf178f50f180f228613345682f7fd18 (diff)
downloadflex-git-16ff9d01339a7ecd859ee619a8496ca878a3eb70.tar.gz
Add documentation for option '--yymore'
-rwxr-xr-xdoc/flex.texi11
1 files changed, 11 insertions, 0 deletions
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