diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-08-04 00:42:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-08-04 00:42:00 +0200 |
commit | e7b67a4f409457e80dde3a5383071869ace85685 (patch) | |
tree | 2cfad2e52e8b747def3f83a7fb03805f10b21d78 /tex/context/base/l-lpeg.lua | |
parent | 0f1a89986b4143f38db25f744028ceafb63b78ee (diff) | |
download | context-e7b67a4f409457e80dde3a5383071869ace85685.tar.gz |
beta 2011.08.04 00:42
Diffstat (limited to 'tex/context/base/l-lpeg.lua')
-rw-r--r-- | tex/context/base/l-lpeg.lua | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tex/context/base/l-lpeg.lua b/tex/context/base/l-lpeg.lua index de9d9e5e3..dbfc7401c 100644 --- a/tex/context/base/l-lpeg.lua +++ b/tex/context/base/l-lpeg.lua @@ -154,25 +154,6 @@ patterns.unspacer = ((patterns.spacer^1)/"")^0 patterns.somecontent = (anything - newline - space)^1 -- (utf8char - newline - space)^1 patterns.beginline = #(1-newline) --- local unquoted = Cs(patterns.unquoted * endofstring) -- not C --- --- function string.unquoted(str) --- return match(unquoted,str) or str --- end --- --- more efficient on long strings: - -local unquoted = ( - squote * Cs((1 - P(-2))^0) * squote - + dquote * Cs((1 - P(-2))^0) * dquote -) - -function string.unquoted(str) - return match(unquoted,str) or str -end - -patterns.unquoted = unquoted - -- print(string.unquoted("test")) -- print(string.unquoted([["t\"est"]])) -- print(string.unquoted([["t\"est"x]])) |