texmod: Fix :mask(...) and .mask name collision

This commit is contained in:
Lars Mueller 2023-05-28 12:56:19 +02:00
parent 5fbb159a41
commit 9911442977
2 changed files with 3 additions and 3 deletions

@ -311,11 +311,11 @@ function texmod:colorize(color, ratio)
} }
end end
function texmod:mask(mask) function texmod:mask(_mask)
return new{ return new{
type = "mask", type = "mask",
base = self, base = self,
mask = mask _mask = _mask
} }
end end

@ -87,7 +87,7 @@ function pw:colorize(w)
end end
function pw:mask(w) function pw:mask(w)
w.colon(); w.esctex(self.mask) w.colon(); w.esctex(self._mask)
end end
function pw:lowpart(w) function pw:lowpart(w)