From 0f90fc3f7ec06dd032ab28ef0478c415f831862f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 17 Feb 2015 21:20:17 -0800 Subject: Moved a test outside a loop. --- src/inlines.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/inlines.c b/src/inlines.c index cc96141..4e6a30a 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -277,11 +277,13 @@ scan_delims(subject* subj, unsigned char c, bool * can_open, bool * can_close) } } - while (peek_char(subj) == c) { + if (c == '\'' || c == '"') { numdelims++; - advance(subj); - if (c == '\'' || c == '"') { - break; // limit to 1 delim for quotes + advance(subj); // limit to 1 delim for quotes + } else { + while (peek_char(subj) == c) { + numdelims++; + advance(subj); } } -- cgit v1.2.3