[NTG-context] checking the first word in a command

Pablo Rodriguez oinos at gmx.es
Tue Jan 27 14:13:28 CET 2015


On 01/26/2015 10:26 PM, Hans Hagen wrote:
> On 1/26/2015 10:04 PM, Pablo Rodriguez wrote:
>> [...]
>> How can I specify that the replacer takes not only strings but complete
>> words?
> 
>      local replacer = lpeg.replacer {
>   	{ "señora", "la señora" },
>   	{ "señor", "el señor" },
>      }

Many thanks for the advice, Hans.


Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list