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
function texmod:mask(mask)
function texmod:mask(_mask)
return new{
type = "mask",
base = self,
mask = mask
_mask = _mask
}
end

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