Skip to content

Commit b8f34c6

Browse files
committed
Add submodule alias and dependency targets to grammar
1 parent 4287f43 commit b8f34c6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

GRAMMAR.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ item : alias
5555
eol : NEWLINE
5656
| COMMENT NEWLINE
5757
58-
alias : 'alias' NAME ':=' NAME eol
58+
alias : 'alias' NAME ':=' target eol
59+
60+
target : NAME ('::' NAME)*
5961
6062
assignment : NAME ':=' expression eol
6163
@@ -138,8 +140,8 @@ variadic : '*' parameter
138140
139141
dependencies : dependency* ('&&' dependency+)?
140142
141-
dependency : NAME
142-
| '(' NAME expression* ')'
143+
dependency : target
144+
| '(' target expression* ')'
143145
144146
body : INDENT line+ DEDENT
145147

0 commit comments

Comments
 (0)