bug fixed

This commit is contained in:
Valk Richard Li
2020-01-18 20:33:24 +08:00
committed by GitHub
parent 58c40b5468
commit f19e8611c7
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -306,6 +306,11 @@ class nasal_lexer
while(*ptr!=str_begin && *ptr!='\n')
{
token_str+=*ptr;
if(*ptr=='\\')
{
++ptr;
token_str+=*ptr;
}
++ptr;
if(ptr==res.end())
break;
+1 -1
View File
@@ -14,7 +14,7 @@ nil;
[0,1,2,3,4,5][2]; # 2
{str:"hello"}.str; # "hello"
{str:"hello"}["str"]; # "hello"
{"str":"hello"}["str"]; # "hello"
{"str":"hello\"\"\n"}["str"]; # "hello"
# normal scalar
var number_1=1;