summaryrefslogtreecommitdiff
path: root/rst_context.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-04 11:12:29 +0200
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-04 11:12:29 +0200
commit5a9490c529fd711555f6dda702593602fc08d404 (patch)
treec1841d5e93c3b2c7b66455aef837ec255f1a91e8 /rst_context.lua
parent1cc2bd29d90b5f8e60e3e51976666999dfbeabfa (diff)
downloadcontext-rst-5a9490c529fd711555f6dda702593602fc08d404.tar.gz
commented blocks
Diffstat (limited to 'rst_context.lua')
-rw-r--r--rst_context.lua17
1 files changed, 17 insertions, 0 deletions
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