diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-30 16:22:03 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-30 16:22:03 +0000 |
commit | a20be95dec7797c55257792a32b6b39bdbdfe595 (patch) | |
tree | c792fc779fd4c6076766e78fa7644b081e72b26f /libmdoc.h | |
parent | a81d5d8c62b37fdb8d82d9cebd9cfa044222b9d8 (diff) | |
download | mandoc-a20be95dec7797c55257792a32b6b39bdbdfe595.tar.gz mandoc-a20be95dec7797c55257792a32b6b39bdbdfe595.tar.zst mandoc-a20be95dec7797c55257792a32b6b39bdbdfe595.zip |
Macro argument quoting does not prevent recognition of punctuation
and of called macros.
This bug affects almost all macros, and fixing it simplifies the
code. It is amazing that the bogus ARGS_QWORD feature got implemented
in the first place, and then carrier along for more than eight years
without anybody ever noticing that it was pointless.
Reported by Leah Neukirchen <leah at vuxu dot org>, found on Void Linux.
Diffstat (limited to 'libmdoc.h')
-rw-r--r-- | libmdoc.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: libmdoc.h,v 1.111 2017/04/29 12:45:41 schwarze Exp $ */ +/* $Id: libmdoc.h,v 1.112 2017/05/30 16:22:03 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -39,7 +39,6 @@ enum margserr { ARGS_EOLN, /* end-of-line */ ARGS_WORD, /* normal word */ ARGS_PUNCT, /* series of punctuation */ - ARGS_QWORD, /* quoted word */ ARGS_PHRASE /* Bl -column phrase */ }; |