internal/rosa/azalea: replace binding token

This replaces the '*' placeholder with a less confusing '#'.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-24 16:18:19 +09:00
parent 689f972976
commit a3867ad65f
94 changed files with 185 additions and 185 deletions

View File

@@ -209,7 +209,7 @@ func (p *parser) parseExpr() any {
case '=':
break
case '*':
case '#':
arg.R = true
p.scanAs('=')

View File

@@ -85,7 +85,7 @@ func TestEvaluate(t *testing.T) {
Err: UndefinedError("v"),
}},
{"apply bound undefined", `f { _v* = "\x00"; v = _v; }`, makeStackCheck(func(
{"apply bound undefined", `f { _v# = "\x00"; v = _v; }`, makeStackCheck(func(
args FArgs,
) (v any, err error) {
v = "\xfd"
@@ -124,7 +124,7 @@ func TestEvaluate(t *testing.T) {
Err: ErrInvalidSpecial,
}},
{"bound inputs", `package name { inputs* = []; }`, nil, "", EvaluationError{
{"bound inputs", `package name { inputs# = []; }`, nil, "", EvaluationError{
Expr: Func{
Ident: Ident("name"),
Package: true,
@@ -136,7 +136,7 @@ func TestEvaluate(t *testing.T) {
Err: ErrInvalidSpecial,
}},
{"bound runtime", `package name { runtime* = []; }`, nil, "", EvaluationError{
{"bound runtime", `package name { runtime# = []; }`, nil, "", EvaluationError{
Expr: Func{
Ident: Ident("name"),
Package: true,

View File

@@ -3,7 +3,7 @@ package gcc {
website = "https://www.gnu.org/software/gcc";
anitya = 6502;
version* = "16.1.0";
version# = "16.1.0";
source = remoteTar {
url = "https://ftp.tsukuba.wide.ad.jp/software/gcc/releases/"+
"gcc-"+version+"/gcc-"+version+".tar.gz";