Noteworthy changes in release 2.7.12 (2026-11-28) [stable]
build
-
"make pdf" builds the PDF version of the manual again. Since flex
2.6.5-rc1 it stopped with the error "@TEXI2PDF@: command not found"
instead of running texi2dvi. The PDF is still not included in the
source distribution. (#537)Thanks to a report from dctaylor87.
-
The repository has a git hook that checks the spelling of the files
in each commit with codespell, alongside the existing hook that
checks commit messages. A clone turns on both with
"git config core.hooksPath .githooks". Pull requests are checked
for spelling too. (#909)
documentation
-
The copyright notices have been brought up to date. COPYING and the
manual now give the Flex Project's years as 2001-2026, where they
stopped at 2007. The installed FlexLexer.h header now carries the
Flex Project's copyright and license identifier, and says that a
C++ scanner that includes it is as free of the notice as a scanner
generated for any other language. (#485)Thanks to a report from Simon Sobisch.
-
Misspellings in the manual have been corrected. (#909)
Thanks to a report from jschleus.
scanner
-
The option --header-file now works with %option c++. Flex accepted
it and wrote nothing. For a C++ scanner it now writes the
FlexLexer.h of the flex that generated the scanner, and the scanner
includes that file by its name, without the directory, in place of
<FlexLexer.h>. A scanner built for another machine, as when
cross-compiling, then takes its header from the build instead of
from whatever copy the compiler finds on the system. Keep the file
in the scanner's directory, or add its directory to the include
path. (#483)Thanks to a report from Daniel Colascione.