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

Syntax highlight error in Scala lexer, literal types #1035

Closed
Anteru opened this issue Aug 31, 2019 · 0 comments · Fixed by #1694
Closed

Syntax highlight error in Scala lexer, literal types #1035

Anteru opened this issue Aug 31, 2019 · 0 comments · Fixed by #1694
Labels
S-major severity: major T-bug type: a bug X-imported imported from Bitbucket
Milestone

Comments

@Anteru
Copy link
Collaborator

Anteru commented Aug 31, 2019

(Original issue 1331 created by None on 2017-02-18T20:02:02.566973+00:00)

Scala code will soon allow literals to be placed in types position (SIP-23). Typelevel Scala and Dotty already allow this. The lexer should not to mark the following as errors:

#!Scala

type Test[A] = Int
type MyTest = Test[1]

val one :  1 = 1
@Anteru Anteru added T-bug type: a bug X-imported imported from Bitbucket S-major severity: major labels Aug 31, 2019
MaximeKjaer added a commit to MaximeKjaer/pygments that referenced this issue Jan 23, 2021
@Anteru Anteru added this to the 2.9 milestone Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-major severity: major T-bug type: a bug X-imported imported from Bitbucket
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant