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:
James Shubin
2020-04-15 04:44:42 -04:00
parent 32916f9a6f
commit 024aa60209

View File

@@ -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