From 024aa60209cff03441ea972808e3aff1fcae22d3 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Wed, 15 Apr 2020 04:44:42 -0400 Subject: [PATCH] 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. --- lang/parser/parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/parser/parser.y b/lang/parser/parser.y index 9570a75e..ede33c87 100644 --- a/lang/parser/parser.y +++ b/lang/parser/parser.y @@ -1442,7 +1442,7 @@ capitalized_res_identifier: posLast(yylex, yyDollar) // our pos $$.str = $1.str } -| capitalized_res_identifier COLON IDENTIFIER +| capitalized_res_identifier COLON CAPITALIZED_IDENTIFIER { posLast(yylex, yyDollar) // our pos $$.str = $1.str + $2.str + $3.str