Bugfixes for multiline comments to properly preserve column and to span multiple lines

This commit is contained in:
Jonathan Turner
2009-06-01 19:11:27 +00:00
parent ccc3a506dd
commit f0088d8ade
2 changed files with 2 additions and 4 deletions

View File

@@ -56,7 +56,6 @@ std::vector<TokenPtr> Lexer::lex(const std::string &input, const char *filename)
input_iter += comment_end.size();
++current_line;
current_col = 0;
break;
}
boost::match_results<std::string::const_iterator> eoc_delim;
if (regex_search(input_iter, input_end, eoc_delim, multiline_comment_end_pattern.regex, boost::match_continuous)) {
@@ -68,6 +67,7 @@ std::vector<TokenPtr> Lexer::lex(const std::string &input, const char *filename)
}
if ((!found_eoc) && (input_iter != input_end)) {
++input_iter;
current_col += 1;
}
}