aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Roff.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-09-05 21:13:50 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-09-05 21:13:50 -0700
commit0534258780d495971bdae995c60002e231fe112a (patch)
treefc38201c7ed456b202112eedce1850755c6c6e34 /src/Text/Pandoc/Readers/Roff.hs
parente26ef34c043404e813b79117860ee44ea45e909e (diff)
downloadpandoc-0534258780d495971bdae995c60002e231fe112a.tar.gz
Roff reader: Better support for 'while'.
Diffstat (limited to 'src/Text/Pandoc/Readers/Roff.hs')
-rw-r--r--src/Text/Pandoc/Readers/Roff.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Roff.hs b/src/Text/Pandoc/Readers/Roff.hs
index 5ba5a28b9..5381b2a30 100644
--- a/src/Text/Pandoc/Readers/Roff.hs
+++ b/src/Text/Pandoc/Readers/Roff.hs
@@ -351,6 +351,9 @@ lexMacro = do
"ie" -> lexConditional "ie"
"if" -> lexConditional "if"
"el" -> lexConditional "el"
+ "while" -> lexConditional "while"
+ -- this doesn't get the semantics right but
+ -- avoids parse errors
_ -> do
args <- lexArgs