Skip to content

Fix the tokenization of < edge cases#2280

Open
ayman-sigma wants to merge 1 commit intoapache:mainfrom
ayman-sigma:ayman/fixLtTokenizer
Open

Fix the tokenization of < edge cases#2280
ayman-sigma wants to merge 1 commit intoapache:mainfrom
ayman-sigma:ayman/fixLtTokenizer

Conversation

@ayman-sigma
Copy link
Contributor

This change fixes tokenizer behavior for < prefixed sequences so subtraction and comparison are parsed correctly instead of being treated as an operator start. The issue mainly happens when there is no space between < and other tokens like -, or =.

This PR address:

  1. The use of + or - after < (Lt) to identify the sign of the following number/identifier
  2. Similarly, the use of + or - after <= (LtEq)
  3. Keeps the Two way arrow token <-> the same for dialects that supports geometric types.

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.

1 participant