summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2020-11-11 12:21:09 +0100
committerJulien Nabet <serval2412@yahoo.fr>2020-11-11 18:13:46 +0100
commit710947f020eb5dda72add8a08534a4836732e596 (patch)
tree91d07f7a8c23c16f30b19dff1e11a9e34362e12c /comphelper
parent22d83f0e2ce15f95675e2022c45c36e6d892c076 (diff)
tdf#138113: Base SQL syntax colouring issue with operators "/", "-"
Change-Id: If268d7731642a6503418ca187b4fe85a889d1d2b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105581 (cherry picked from commit e2b290da0922246f8fb5fcd332bbd41ad165fd43) Change-Id: Ib359c8e024b4899b67e381a16f183232bfe88bec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105537 Reviewed-by: Lionel Mamane <lionel@mamane.lu> Tested-by: Jenkins
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/syntaxhighlight.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx
index 60ecc7b97c94..f6eccc7b4fc3 100644
--- a/comphelper/source/misc/syntaxhighlight.cxx
+++ b/comphelper/source/misc/syntaxhighlight.cxx
@@ -433,6 +433,8 @@ bool SyntaxHighlighter::Tokenizer::getNextToken(const sal_Unicode*& pos, /*out*/
}
reType = TokenType::Comment;
}
+ else
+ reType = TokenType::Operator;
}
else if ((c=='/') && (aLanguage == HighlighterLanguage::SQL))
{
@@ -447,6 +449,8 @@ bool SyntaxHighlighter::Tokenizer::getNextToken(const sal_Unicode*& pos, /*out*/
}
reType = TokenType::Comment;
}
+ else
+ reType = TokenType::Operator;
}
else
{