2
0
mirror of https://github.com/boostorg/wave.git synced 2026-01-19 04:42:16 +00:00

Wave: fixed #5569: slex CONTLINE token works only for LF line endings

[SVN r72197]
This commit is contained in:
Hartmut Kaiser
2011-05-26 22:22:52 +00:00
parent e1d1f933eb
commit 1e0208fbb4
3 changed files with 3 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ Boost V1.47.0
- Fixed a problem in teh wave driver tool related to #pragma option(output).
If wave was invoked in rapid succession this erroneously appended to an
existing file instead of overwriting that file.
- Fixed #5569: slex CONTLINE token works only for LF line endings
Boost V1.46.0
- V2.2.0

View File

@@ -382,7 +382,7 @@ lexer<IteratorT, PositionT>::init_data[INIT_DATA_SIZE] =
#endif
TOKEN_DATA(SPACE, "[ \t\v\f]+"),
// TOKEN_DATA(SPACE2, "[\\v\\f]+"),
TOKEN_DATA(CONTLINE, "\\" "\\n"),
TOKEN_DATA(CONTLINE, Q("\\") "\n"),
TOKEN_DATA(NEWLINE, NEWLINEDEF),
TOKEN_DATA(POUND_POUND, "##"),
TOKEN_DATA(POUND_POUND_ALT, Q("%:") Q("%:")),

View File

@@ -92,7 +92,7 @@ public:
stream << std::setw(16)
<< std::left << boost::wave::get_token_name(id) << " ("
<< "#" << token_id(ID_FROM_TOKEN(*this))
<< "#" << token_id(BASEID_FROM_TOKEN(*this))
<< ") at " << get_position().get_file() << " ("
<< std::setw(3) << std::right << get_position().get_line() << "/"
<< std::setw(2) << std::right << get_position().get_column()