Skip to content

Fix operator_identifier #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 13, 2023
Merged

Conversation

eed3si9n
Copy link
Collaborator

Fixes #133

Problem

  1. Currently // ends up matching operator_identier
  2. There's also a bug in regex.

Solution

  1. Implement a workaround to avoid //.
  2. Escape -, copying from the identifier regex.

Problem
-------
1. Currently `//` ends up matching `operator_identier`
2. There's also a bug in regex.

Solution
--------
1. Implement a workaround to avoid `//`.
2. Escape `-`, copying from the identifier regex.
Copy link
Collaborator

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -4,7 +4,7 @@

SCALA_SCALA_LIBRARY_EXPECTED=100
SCALA_SCALA_COMPILER_EXPECTED=66
DOTTY_COMPILER_EXPECTED=74
DOTTY_COMPILER_EXPECTED=66
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sort of a bummer, but it makes sense.

@ckipp01 ckipp01 merged commit 63addda into tree-sitter:master Jan 13, 2023
@eed3si9n eed3si9n deleted the wip/operator branch January 13, 2023 09:39
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.

Full line of comments parsed as an operator_identifier
2 participants