Skip to content
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

fix(lexers/go): "~" is a valid token #926

Merged
merged 2 commits into from Feb 12, 2024
Merged

fix(lexers/go): "~" is a valid token #926

merged 2 commits into from Feb 12, 2024

Conversation

abhinav
Copy link
Contributor

@abhinav abhinav commented Feb 12, 2024

With the introduction of generics,
tilde is a valid punctuation token in Go programs.
https://go.dev/ref/spec#Operators_and_punctuation

This updates the punctuation regex for the Go lexer,
and adds a test to ensure that it's treated as such.

With the introduction of generics,
tilde is a valid punctuation token in Go programs.
https://go.dev/ref/spec#Operators_and_punctuation

This updates the punctuation regex for the Go lexer,
and adds a test to ensure that it's treated as such.
lexers/go_test.go Outdated Show resolved Hide resolved
@alecthomas
Copy link
Owner

Thanks, good catch.

@alecthomas alecthomas merged commit 506e36f into alecthomas:master Feb 12, 2024
2 checks passed
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.

None yet

2 participants