diff options
Diffstat (limited to 'src')
-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; |