mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-02-12 21:29:58 +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())) {
|
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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user