diff options
author | Hans Hagen <pragma@wxs.nl> | 2009-12-29 22:32:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2009-12-29 22:32:00 +0100 |
commit | 5eb872dbc6bbc35e222d5b23fc783fb0e75d4a99 (patch) | |
tree | 91164a948df7bcf12b5423db3ef1b310ca2b5017 /tex/context/base/lxml-ent.lua | |
parent | 326b0613f1ed21f5711a8d94403512171c058e48 (diff) | |
download | context-5eb872dbc6bbc35e222d5b23fc783fb0e75d4a99.tar.gz |
beta 2009.12.29 22:32
Diffstat (limited to 'tex/context/base/lxml-ent.lua')
-rw-r--r-- | tex/context/base/lxml-ent.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tex/context/base/lxml-ent.lua b/tex/context/base/lxml-ent.lua index ee6077a76..193611937 100644 --- a/tex/context/base/lxml-ent.lua +++ b/tex/context/base/lxml-ent.lua @@ -11,6 +11,7 @@ local texsprint, ctxcatcodes = tex.sprint, tex.ctxcatcodes local utf = unicode.utf8 local byte, format = string.byte, string.format local utfupper, utfchar = utf.upper, utf.char +local lpegmatch = lpeg.match --[[ldx-- <p>We provide (at least here) two entity handlers. The more extensive @@ -52,7 +53,7 @@ function xml.resolved_entity(str) else -- resolve hex and dec, todo: escape # & etc for ctxcatcodes -- normally this is already solved while loading the file - local chr, err = parsedentity:match(str) + local chr, err = lpegmatch(parsedentity,str) if chr then texsprint(ctxcatcodes,chr) elseif err then |