summaryrefslogtreecommitdiff
path: root/src/core/parser
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-04-03 01:06:34 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:19:30 +0200
commit8652c67a849952318be7cd3365be91c500e20185 (patch)
tree5946c1a335cec045ff1fccc5d517c0582181db9a /src/core/parser
parentc2fb096e02aca7dd3054dc2c8260c81847d8fa1f (diff)
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
Diffstat (limited to 'src/core/parser')
-rw-r--r--src/core/parser/stack/Stack.cpp3
1 files changed, 2 insertions, 1 deletions
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;