diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-04-03 01:06:34 +0200 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2016-04-25 22:19:30 +0200 |
commit | 8652c67a849952318be7cd3365be91c500e20185 (patch) | |
tree | 5946c1a335cec045ff1fccc5d517c0582181db9a | |
parent | c2fb096e02aca7dd3054dc2c8260c81847d8fa1f (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
-rw-r--r-- | src/core/parser/stack/Stack.cpp | 3 |
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; |