diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/inlines.c | 10 |
1 files 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); } } |