allthingssecurity commented on code in PR #28714:
URL: https://github.com/apache/camel/pull/28714#discussion_r4421551139
##########
core/camel-core-languages/src/main/java/org/apache/camel/language/simple/SimpleSyntaxHints.java:
##########
@@ -82,7 +82,8 @@ public final class SimpleSyntaxHints {
private static final String[] OPERATOR_WORDS = {
"==", "!=", ">=", "<=", ">", "<", "=~", "!=~", "~~", "!~~",
"contains",
- "!contains", "regex", "!regex", "in", "!in", "is", "!is", "range",
"!range", "startsWith", "endsWith", "&&", "||" };
+ "!contains", "regex", "!regex", "in", "!in", "is", "!is", "range",
"!range", "startsWith", "!startsWith",
+ "endsWith", "!endsWith", "equals", "!equals", "&&", "||" };
Review Comment:
Thanks, done in 568c2c519b3d. `OPERATORS` now also lists `equals`,
`!equals`, `!startsWith` and `!endsWith`, and also `!=~`, which was missing
before this PR. So it names every binary operator of the tokenizer.
`SimpleSyntaxHintsTest.testUnknownOperatorListsEveryOperator` reads the list
from the "Unknown operator" hint and checks it.
_Claude Code on behalf of allthingssecurity_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]