Skip to content

Add 1.18 generics support for go lexer #2167

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
Jun 25, 2022

Conversation

SilverRainZ
Copy link
Contributor

@SilverRainZ SilverRainZ commented Jun 25, 2022

  • Add new predeclared identifiers: any and comparable
  • Add new operator for type parameters: ~ and |

Ref: https://go.dev/ref/spec

Close #2164

- Add new predeclared identifiers: `any` and `comparable`
- Add new operator for type parameters: `~` and `|`

Ref: https://go.dev/ref/spec
@jeanas
Copy link
Contributor

jeanas commented Jun 25, 2022

Perfect, thanks!

@jeanas jeanas merged commit cc73886 into pygments:master Jun 25, 2022
@SilverRainZ SilverRainZ deleted the go-118-generics branch June 25, 2022 15:20
@Anteru Anteru added this to the 2.13.0 milestone Aug 14, 2022
@Anteru Anteru added the A-lexing area: changes to individual lexers label Aug 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lexing area: changes to individual lexers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Go 1.18's new syntax
3 participants