Skip to content

Add 1.18 generics support for go lexer#2167

Merged
jeanas merged 1 commit intopygments:masterfrom
SilverRainZ:go-118-generics
Jun 25, 2022
Merged

Add 1.18 generics support for go lexer#2167
jeanas merged 1 commit intopygments:masterfrom
SilverRainZ:go-118-generics

Conversation

@SilverRainZ
Copy link
Copy Markdown
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
Copy Markdown
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