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

[Scala] Fix type highlighting #1315

Merged
merged 3 commits into from
Nov 29, 2019

Conversation

Blaisorblade
Copy link
Contributor

@Blaisorblade Blaisorblade commented Nov 28, 2019

On top of #1314, fix the following issue: type is recognized as a keyword even if inside a word, which isn't correct. To wit, below types is an identifier, not the type keyword followed by an s:

trait Symbol(val tpe: types.Type)
trait Symbol(val tpe: Option[types.Type])

image

I expect forSome needs the same treatment, but I haven't tested that.

Also, I'm a Scala dev, not a Python one, and I might be doing something silly.

@Blaisorblade Blaisorblade changed the title Fix type highlighting [Scala] Fix type highlighting Nov 28, 2019
@birkenfeld
Copy link
Member

Looks good, thanks!

@birkenfeld birkenfeld merged commit a01c60f into pygments:master Nov 29, 2019
@Blaisorblade Blaisorblade deleted the fix-type-highlighting branch November 29, 2019 10:14
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.

2 participants