Skip to content

Commit

Permalink
FIX unquote block name
Browse files Browse the repository at this point in the history
  • Loading branch information
wkhere committed Sep 14, 2023
1 parent 5711657 commit f02ad52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lang.y
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ block:
IDENT STR '{' fields '}' {
$$.blk = nBlock{
typ: ident($1.s),
name: nStrLit($2.s),
name: nStrLit(unquote($2.s)),
fields: $4.blk.fields,
}
}
Expand Down
2 changes: 1 addition & 1 deletion y.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ yydefault:
{
yyVAL.blk = nBlock{
typ: ident(yyDollar[1].s),
name: nStrLit(yyDollar[2].s),
name: nStrLit(unquote(yyDollar[2].s)),
fields: yyDollar[4].blk.fields,
}
}
Expand Down

0 comments on commit f02ad52

Please sign in to comment.