lang: parser: Allow edges of resources with colons
Due to a small copy-pasta bug in the parser, resource edges with kinds containing colons didn't work. This fixes the mistake and adds a test.
This commit is contained in:
@@ -1442,7 +1442,7 @@ capitalized_res_identifier:
|
|||||||
posLast(yylex, yyDollar) // our pos
|
posLast(yylex, yyDollar) // our pos
|
||||||
$$.str = $1.str
|
$$.str = $1.str
|
||||||
}
|
}
|
||||||
| capitalized_res_identifier COLON IDENTIFIER
|
| capitalized_res_identifier COLON CAPITALIZED_IDENTIFIER
|
||||||
{
|
{
|
||||||
posLast(yylex, yyDollar) // our pos
|
posLast(yylex, yyDollar) // our pos
|
||||||
$$.str = $1.str + $2.str + $3.str
|
$$.str = $1.str + $2.str + $3.str
|
||||||
|
|||||||
Reference in New Issue
Block a user