Skip to content

flex 2.7.13

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 15:32
· 1 commit to master since this release

Noteworthy changes in release 2.7.13 (2026-11-30) [stable]

documentation

  • Updated bg, ka, lv, nl, pl, pt, pt_BR, ro, sv, uk translations from
    the Translation Project.

scanner

  • A call in an action to one of the functions of flex 2.6.4 is read up
    to its own closing parenthesis. Flex ended the arguments of
    yyunput(), yyless() and the other calls at the first closing
    parenthesis, so a cast or a nested call cut the call short. A
    two-argument yyunput((int) 'b', (char *) yytext) was written as
    unput() with two arguments, which does not compile. A parenthesis
    or a comma inside a string or character constant no longer counts
    either. (#926)

    Thanks to a report from Harmen Stoppels.

  • A scanner reads at least 8192 bytes at a time again, as it did in
    flex 2.6.4. Since flex 2.6.5 it read BUFSIZ bytes, which is only
    1024 on systems with musl, such as Alpine Linux, and on the BSDs. A
    scanner built there stopped with "flex scanner push-back overflow"
    on a large unput, and so did flex itself. (#925)

    Thanks to a report from jvvv.

  • The option -DNAME=VALUE works again. Flex wrote it as "#define
    NAME=VALUE =VALUE", so the scanner would not compile. It now writes
    "#define NAME VALUE", and -DNAME alone defines NAME as 1. (#923)

    Thanks to a report from jvvv.