Genivia / RE-flex

A high-performance C++ regex library and lexical analyzer generator with Unicode support. Extends Flex++ with Unicode support, indent/dedent anchors, lazy quantifiers, functions for lex and syntax error reporting and more. Seamlessly integrates with Bison and other parsers.
https://www.genivia.com/doc/reflex/html
BSD 3-Clause "New" or "Revised" License
504 stars 85 forks source link

yyrestart: fix first FILE* character getting swallwed #179

Closed jmaebe closed 1 year ago

jmaebe commented 1 year ago

The Input constructor was being called twice, thereby twice reading the "first" character to check for an UTF signature and only caching the second one for use during parsing.

resolves #178

genivia-inc commented 1 year ago

Thanks for your patience. This looks important. I had no time to work on this unit now and will catch up this weekend.