[Libreoffice-commits] core.git: comphelper/source
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Wed Nov 11 15:21:52 UTC 2020
comphelper/source/misc/syntaxhighlight.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit e2b290da0922246f8fb5fcd332bbd41ad165fd43
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Wed Nov 11 12:21:09 2020 +0100
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Wed Nov 11 16:21:06 2020 +0100
tdf#138113: Base SQL syntax colouring issue with operators "/", "-"
Change-Id: If268d7731642a6503418ca187b4fe85a889d1d2b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105581
Reviewed-by: Lionel Mamane <lionel at mamane.lu>
Tested-by: Jenkins
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
{
More information about the Libreoffice-commits
mailing list