Skip to content

fix for escaped and grouping parentheses in like/regex operations - #46

Open
javierlores wants to merge 3 commits into
developfrom
feature/regex-parenthesis-fix
Open

javierlores wants to merge 3 commits into
developfrom
feature/regex-parenthesis-fix

Conversation

@javierlores

Copy link
Copy Markdown
Contributor

Added missing support for parentheses within regex/like operators which are required to be escaped
Added missing support for grouping with parentheses within regex/like operator
Modified to handle escaped links and escaped local resolution seperately to avoid conflict with escaped parenthesis

@javierlores
javierlores requested a review from jtnelson March 15, 2022 19:11
…nthesis-fix

Resolved conflicts in grammar/grammar.jjt:
- kept develop's command tokens and this branch's escape tokens;
- NON_ALPHANUMERIC excludes both the backslash and the semicolon;
- took develop's UnaryExpression with ScopedExpression;
- UnaryValue and BinaryValue keep the escape prefix and use develop's Parsing.resolveLocalReference and ASTERISK_SUFFIXED_STRING;
- RegexValue keeps this branch's nested grouping and accepts ASTERISK_SUFFIXED_STRING;
- SearchValue, new in develop, also accepts the escape tokens, since a backslash no longer lexes inside a word.
Regenerated src/main/java/com/cinchapi/ccl/generated/Grammar.java, GrammarConstants.java and GrammarTokenManager.java from the merged grammar.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants