From 5a9490c529fd711555f6dda702593602fc08d404 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 4 Sep 2010 11:12:29 +0200 Subject: commented blocks --- rst_context.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'rst_context.lua') diff --git a/rst_context.lua b/rst_context.lua index 7d0ef28..ff3851d 100644 --- a/rst_context.lua +++ b/rst_context.lua @@ -323,6 +323,10 @@ end -- Field lists -------------------------------------------------------------------------------- +-- TODO Do something useful with field lists. For now I'm not sure what as the +-- bibliography directives from the reST specification seem to make sense only +-- when using docinfo and, after all, we have .bib files that are portable. + function rst_context.field_list (str) return [[ @@ -349,4 +353,17 @@ function rst_context.field (tab) ]], name, body) end +function rst_context.line_comment (str) + return "% " .. str +end + +function rst_context.block_comment (str) + return string.format([[ + +\iffalse +%s +\fi +]], str) +end + return rst_context -- cgit v1.2.3