summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/syntaxhighlight.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx
index 304e9e6b271f..de25fd158965 100644
--- a/comphelper/source/misc/syntaxhighlight.cxx
+++ b/comphelper/source/misc/syntaxhighlight.cxx
@@ -487,7 +487,7 @@ bool SyntaxHighlighter::Tokenizer::getNextToken(std::u16string_view::const_itera
}
// Object separator? Must be handled before Number
- else if( c == '.' && ( *pos < '0' || *pos > '9' ) )
+ else if( c == '.' && ( pos == end || *pos < '0' || *pos > '9' ) )
{
reType = TokenType::Operator;
}