diff options
author | Hans Hagen <pragma@wxs.nl> | 2009-09-09 14:31:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2009-09-09 14:31:00 +0200 |
commit | 8683bfc5e51de9f4436c7deebd9517c9f2779f0a (patch) | |
tree | 3031e2270b20777bba40f54fdb7e5129323a5f06 /tex/context/base/lxml-tab.lua | |
parent | c6e9f914fe93f3f674c20fded71bf7e18b8df600 (diff) | |
download | context-8683bfc5e51de9f4436c7deebd9517c9f2779f0a.tar.gz |
beta 2009.09.09 14:31
Diffstat (limited to 'tex/context/base/lxml-tab.lua')
-rw-r--r-- | tex/context/base/lxml-tab.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tex/context/base/lxml-tab.lua b/tex/context/base/lxml-tab.lua index 38d19f4b9..290c31579 100644 --- a/tex/context/base/lxml-tab.lua +++ b/tex/context/base/lxml-tab.lua @@ -277,6 +277,7 @@ local dquote = S('"') local equal = P('=') local slash = P('/') local colon = P(':') +local ampersand = P('&') local valid = R('az', 'AZ', '09') + S('_-.') local name_yes = C(valid^1) * colon * C(valid^1) local name_nop = C(P(true)) * C(valid^1) @@ -290,7 +291,7 @@ local justtext = C((1-open)^1) local somespace = space^1 local optionalspace = space^0 -local value = (squote * C((1 - squote)^0) * squote) + (dquote * C((1 - dquote)^0) * dquote) +local value = (squote * C((1 - squote)^0) * squote) + (dquote * C((1 - dquote)^0) * dquote) -- ampersand and < also invalid in value local attribute = (somespace * name * optionalspace * equal * optionalspace * value) / add_attribute local attributes = attribute^0 |