[NTG-context] issue with character and \xmlprettyprinttext

Pablo Rodriguez oinos at gmx.es
Tue Feb 20 19:10:19 CET 2018


On 02/20/2018 06:10 PM, Hans Hagen wrote:
> On 2/20/2018 5:18 PM, Pablo Rodriguez wrote:
>> [...]
>> I’m afraid it might be a bug.
> 
> local name     = P("\\") * (patterns.utf8char + S("@!?_"))^1

Hans,

I’m afraid that my previous reply was too fast.

Just after testing it worked, I saw it broke comments themselves.

Something like that would be needed:

local name     = P("\\") * (patterns.utf8character - S("
\t\f\v\n\r.,;'\"=+-"))^1

I hope it might help,

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


More information about the ntg-context mailing list