Skip to content

Commit ddedf86

Browse files
committed
multiline strnig supported in REPL
1 parent ecba8d0 commit ddedf86

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ OPTIONS:
5151

5252
## License ##
5353

54-
Copyright 2016-2022 Kim, Taegyoon
54+
Copyright 2016-2023 Kim, Taegyoon
5555

5656
Licensed under the Apache License, Version 2.0 (the "License");
5757
you may not use this file except in compliance with the License.

arc.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ namespace arc {
182182
*end = str + (str[1] == '@' ? 2 : 1);
183183
else if (str[0] == '"') {
184184
str++;
185-
while (*str != 0) {
185+
while (1) {
186+
if (*str == 0) return ERROR_FILE; /* string not terminated */
186187
if (*str == '\\') str++;
187188
else if (*str == '"') {
188189
break;

arc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#endif
3535

3636
namespace arc {
37-
constexpr auto VERSION = "0.21.1";
37+
constexpr auto VERSION = "0.22";
3838

3939
enum type {
4040
T_NIL,

0 commit comments

Comments
 (0)