From 8652c67a849952318be7cd3365be91c500e20185 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Fri, 3 Apr 2015 01:06:34 +0200 Subject: Do not treat commands with user defined open/close syntax as range command, if the close token is a special (whitespace) token as this produces unintuitive behaviour --- src/core/parser/stack/Stack.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/parser/stack/Stack.cpp b/src/core/parser/stack/Stack.cpp index 54be719..0241118 100644 --- a/src/core/parser/stack/Stack.cpp +++ b/src/core/parser/stack/Stack.cpp @@ -978,7 +978,8 @@ bool StackImpl::handleOpenTokens(Logger &logger, const Token &token, // If this is not a short form token and the "close" descriptor is // given, mark the current handler as "range" handler - if (!shortForm && descr.close != Tokens::Empty) { + if (!shortForm && descr.close != Tokens::Empty && + !Token::isSpecial(descr.close)) { info.closeToken = descr.close; info.tokenDesciptor = descr.descriptor; info.range = true; -- cgit v1.2.3