]> granicus.if.org Git - re2c/commit
Fixed processing of #line directives in input files.
authorUlya Trofimovich <skvadrik@gmail.com>
Mon, 25 Jun 2018 21:42:33 +0000 (22:42 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Mon, 25 Jun 2018 22:18:54 +0000 (23:18 +0100)
commit96aea70f17481c9b40b60f58190d86d4b391adbf
tree6a9fcd77516a9f2827664dbf7a1c617662efe2fb
parent5034ea4cd87d2d0b802add048ffe4597d79078e5
Fixed processing of #line directives in input files.

The correct behaviour was broken somewhere in between 0.16 and 1.0:
re2c was forgetting to output the chunk of input file that precedes
the #line directive.

Reported by pskocik in #98.
re2c/bootstrap/src/ast/lex.cc
re2c/src/ast/lex.re
re2c/test/line-02.c [new file with mode: 0644]
re2c/test/line-02.re [new file with mode: 0644]