]> granicus.if.org Git - re2c/commit
Recognize newlines in character strings and classes.
authorUlya Trofimovich <skvadrik@gmail.com>
Mon, 7 Nov 2016 09:46:18 +0000 (09:46 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Mon, 7 Nov 2016 09:53:57 +0000 (09:53 +0000)
commit54b50c0bbfe4a865bf004ef51fb639156a7657d7
tree4a22e1931b97222021d5924a8e9ab5ba707ee208
parent042696f7e8c9569afbe130760d85074a69a84087
Recognize newlines in character strings and classes.

As for now, newline inside of a character string or class is an error:
re2c should emit clear error message. Different styles of newlines
should be recognized ("\n", "\r\n").

This commit fixes bug #162 reported by pauloscustodio:
    Reading files with "rb" causes issues in Windows
12 files changed:
re2c/bootstrap/src/parse/lex.cc
re2c/src/parse/lex.re
re2c/test/code_points_error_esc.c [deleted file]
re2c/test/code_points_error_lf.c [deleted file]
re2c/test/cpoint_class_error_eol.c [new file with mode: 0644]
re2c/test/cpoint_class_error_eol.re [new file with mode: 0644]
re2c/test/cpoint_class_error_esc_eol.c [new file with mode: 0644]
re2c/test/cpoint_class_error_esc_eol.re [new file with mode: 0644]
re2c/test/cpoint_string_error_eol.c [new file with mode: 0644]
re2c/test/cpoint_string_error_eol.re [moved from re2c/test/code_points_error_lf.re with 100% similarity]
re2c/test/cpoint_string_error_esc_eol.c [new file with mode: 0644]
re2c/test/cpoint_string_error_esc_eol.re [moved from re2c/test/code_points_error_esc.re with 100% similarity]