]> granicus.if.org Git - re2c/commit
Lexer: don't care if end of comment is followed by a newline.
authorUlya Trofimovich <skvadrik@gmail.com>
Sat, 2 Apr 2016 14:07:59 +0000 (15:07 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Sat, 2 Apr 2016 14:07:59 +0000 (15:07 +0100)
commit0ba58e2afd99fb920f8035c4f3179cc5976a3dab
tree0a74402236fb7f4064d91205ff18d66e74cf397c
parentef3536b491ae0bf7faf41fe693ab136a79e39e39
Lexer: don't care if end of comment is followed by a newline.

re2c used to swallow newline that immediately followes end of directive:
for most of the directives re2c generates code block that ends with a
newline, so the generated code looks better if the newline is not doubled.

However, this unnecessarily complicates the lexer.
65 files changed:
re2c/bootstrap/src/parse/lex.cc
re2c/src/parse/lex.re
re2c/test/bug1163046.c
re2c/test/calc_001.c
re2c/test/calc_001.dei.c
re2c/test/calc_001.ei.c
re2c/test/calc_002.c
re2c/test/calc_003.c
re2c/test/calc_004.c
re2c/test/calc_005.c
re2c/test/calc_006.s.c
re2c/test/calc_007.b.c
re2c/test/calc_008.b--skeleton.c
re2c/test/calc_008.b.c
re2c/test/condition_06.cs.c
re2c/test/condition_07.cbi.c
re2c/test/condition_08.cbi.c
re2c/test/condition_08.cbif.c
re2c/test/condition_09.cbif.c
re2c/test/condition_09.cgif.c
re2c/test/condition_10.cgif.c
re2c/test/condition_12.cgif.c
re2c/test/condition_14.cbif.c
re2c/test/condition_14.cgif.c
re2c/test/condition_14.cif.c
re2c/test/condition_14.csif.c
re2c/test/condition_15.csif.c
re2c/test/condtype_decl.c.c
re2c/test/condtype_decl.cg.c
re2c/test/condtype_decl.cs.c
re2c/test/condtype_forwdecl.cg.c
re2c/test/condtype_forwdecl.cs.c
re2c/test/config4f.f.c
re2c/test/config4g.ifs.c
re2c/test/config5.c
re2c/test/ctx.b.c
re2c/test/ctx.c
re2c/test/ctx.s.c
re2c/test/error13.1.c
re2c/test/error13.c
re2c/test/error14.1.c
re2c/test/error14.c
re2c/test/main.b.c
re2c/test/parse_date.b.c
re2c/test/parse_date.c
re2c/test/parse_date.db.c
re2c/test/parse_date.g.c
re2c/test/parse_date.s.c
re2c/test/parse_date_1_78.db.c
re2c/test/php20140822_zend_language_scanner.igcd--flex-syntax.c
re2c/test/php20140822_zend_language_scanner_crlf.igcd--flex-syntax.c
re2c/test/php20150211_parse_date.ig.c
re2c/test/php20150211_parse_date_crlf.ig.c
re2c/test/php20150211_parse_iso_intervals.ig.c
re2c/test/php20150211_zend_ini_scanner.igcd--flex-syntax--case-inverted.c
re2c/test/php20150211_zend_language_scanner.igcd--flex-syntax--case-inverted.c
re2c/test/repeat-01.cgir.c
re2c/test/repeat-02.cgir.c
re2c/test/repeat-03.cgir.c
re2c/test/reuse_conds_default_1.cgir.c
re2c/test/strip_001.s.c
re2c/test/strip_002.s.c
re2c/test/strip_003.b--skeleton.c
re2c/test/strip_003.b.c
re2c/test/yyaccept_missing.bci.c