summaryrefslogtreecommitdiff
path: root/rst_context.lua
diff options
context:
space:
mode:
Diffstat (limited to 'rst_context.lua')
-rw-r--r--rst_context.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/rst_context.lua b/rst_context.lua
index a46e0a2..3107a29 100644
--- a/rst_context.lua
+++ b/rst_context.lua
@@ -740,6 +740,11 @@ function rst_context.option_item (tab)
]], tab[1], tab[2])
end
+function rst_context.test(str)
+ print("This:>>"..str.."<<")
+ return ":"
+end
+
function rst_context.literal_block (str, included)
local indent = P" "^1
local stripme = indent:match(str) or 0
@@ -756,8 +761,6 @@ function rst_context.literal_block (str, included)
}
str = strip:match(str)
- --strip:print() -- grammar consists of 45 rules only; wheras a plain
- -- pattern has 60+
str = [[
\starttyping[lines=hyphenated]