Fix for single-line comments stopping at semicolon.

This commit is contained in:
Jonathan Turner
2009-11-27 22:52:55 +00:00
parent fbf8f53e04
commit c418644a5b

View File

@@ -171,7 +171,9 @@ namespace chaiscript
} }
else if (Symbol_(singleline_comment.c_str())) { else if (Symbol_(singleline_comment.c_str())) {
while (input_pos != input_end) { while (input_pos != input_end) {
if (Eol_()) { if (Symbol_("\r\n") || Char_('\n')) {
++line;
col = 1;
break; break;
} }
else { else {