bug fixed
This commit is contained in:
parent
4c966af52e
commit
1c78d339a1
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue