mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-10 02:36:54 +08:00
Fix for single-line comments stopping at semicolon.
This commit is contained in:
parent
fbf8f53e04
commit
c418644a5b
@ -171,7 +171,9 @@ namespace chaiscript
|
||||
}
|
||||
else if (Symbol_(singleline_comment.c_str())) {
|
||||
while (input_pos != input_end) {
|
||||
if (Eol_()) {
|
||||
if (Symbol_("\r\n") || Char_('\n')) {
|
||||
++line;
|
||||
col = 1;
|
||||
break;
|
||||
}
|
||||
else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user