File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7013,9 +7013,6 @@ parser_peek_variable_name(struct parser_params *p)
7013
7013
if (++ptr >= p->lex .pend ) return 0 ;
7014
7014
c = *ptr;
7015
7015
}
7016
- else if (ISDIGIT (c)) {
7017
- return tSTRING_DVAR;
7018
- }
7019
7016
break ;
7020
7017
case ' {' :
7021
7018
p->lex .pcur = ptr;
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ def test_embvar
269
269
scan ( 'embvar' , '"#@ivar"' )
270
270
assert_equal [ '#' ] ,
271
271
scan ( 'embvar' , '"#@@cvar"' )
272
- assert_equal [ '#' ] ,
272
+ assert_equal [ ] ,
273
273
scan ( 'embvar' , '"#@1"' )
274
274
assert_equal [ ] ,
275
275
scan ( 'embvar' , '"#lvar"' )
Original file line number Diff line number Diff line change @@ -358,6 +358,7 @@ def test_dstr
358
358
assert_equal ( "foo 1 bar" , "foo #@@foo bar" )
359
359
"1" =~ /(.)/
360
360
assert_equal ( "foo 1 bar" , "foo #$1 bar" )
361
+ assert_equal ( 'foo #@1 bar' , eval ( '"foo #@1 bar"' ) )
361
362
end
362
363
363
364
def test_dstr_disallowed_variable
You can’t perform that action at this time.
0 commit comments