diff options
author | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2010-09-15 20:34:46 +0200 |
---|---|---|
committer | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2010-09-15 20:34:46 +0200 |
commit | c0b5a4227e09a708ed0440599600cb784d071b9f (patch) | |
tree | 6aa5f8a3734b323b99d389cae6ec85b8e51aa713 /rst_helpers.lua | |
parent | f1786af10f0be9675f83a335581593d45d56836c (diff) | |
download | context-rst-c0b5a4227e09a708ed0440599600cb784d071b9f.tar.gz |
ignoring inline markup delimiters enclosed by parentheses or quotes
Diffstat (limited to 'rst_helpers.lua')
-rw-r--r-- | rst_helpers.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rst_helpers.lua b/rst_helpers.lua index f7eb950..bb48aed 100644 --- a/rst_helpers.lua +++ b/rst_helpers.lua @@ -93,7 +93,7 @@ do end function helpers.cell.create(raw, n_row, n_col, parent, variant) - local p = patterns + local p = helpers.patterns local cell = {} cell.stripped = raw and p.strip:match(raw) or "" cell.content = raw @@ -130,7 +130,7 @@ end local function set_layout (line) - local p = patterns + local p = helpers.patterns local layout = {} local slice = Ct((p.plus * C(p.dash^1) * #p.plus)^1) @@ -314,7 +314,7 @@ function helpers.table.create(raw) self.rows = {} self.layout = set_layout(raw[1]) - local p = patterns + local p = helpers.patterns self.resolve_parent = function(row, col, array) local array = array or self.rows @@ -492,7 +492,7 @@ end -- Check the column boundaries of a simple table. function helpers.get_st_boundaries (str) - local p = patterns + local p = helpers.patterns local starts, stops, slices = {}, {}, {} for n, elm in ipairs({ p.column_starts:match(str) }) do slices[n] = { start = elm } @@ -509,7 +509,7 @@ function helpers.table.simple(raw) local rows = {} local multispans = {} local bounds = helpers.get_st_boundaries(raw[1]) - local p = patterns + local p = helpers.patterns for nr, row in ipairs(raw) do local newrow = {} |