[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: String access & metamethods
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 12 Dec 2007 22:39:03 -0200
> To ease even more the use of a L function (or any other name you see
> fit), you can use a token filter to add it to all strings.
But that does not work for concatenations: for instance, "log" and "in"
may have translations but not "login".
> (I don't know if a token filter can distinguish between the two, but
> that would be a nice addition if it doesn't).
It can't because, by definition, it seems strings *after* the lexer has
turned text into tokens. All strings are the same, regardless of what
text form was used to define them.
--lhf