Add submodule alias and dependency targets to grammar (#2877)
Some checks are pending
CI / lint (push) Waiting to run
CI / msrv (push) Waiting to run
CI / pages (push) Waiting to run
CI / test (macos-latest) (push) Waiting to run
CI / test (ubuntu-latest) (push) Waiting to run
CI / test (windows-latest) (push) Waiting to run

This commit is contained in:
Casey Rodarmor 2025-09-03 11:39:44 -07:00 committed by GitHub
parent 4287f43c12
commit f5ffec5c74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,7 +55,9 @@ item : alias
eol : NEWLINE
| COMMENT NEWLINE
alias : 'alias' NAME ':=' NAME eol
alias : 'alias' NAME ':=' target eol
target : NAME ('::' NAME)*
assignment : NAME ':=' expression eol
@ -138,8 +140,8 @@ variadic : '*' parameter
dependencies : dependency* ('&&' dependency+)?
dependency : NAME
| '(' NAME expression* ')'
dependency : target
| '(' target expression* ')'
body : INDENT line+ DEDENT