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

Add val and var as xtend keywords #2602

Merged
merged 1 commit into from Dec 4, 2023

Conversation

ebousse
Copy link
Contributor

@ebousse ebousse commented Dec 1, 2023

The current Xtend support does not highlights two important keywords of the language, namely val and var, which allow declaring variables.

Example:

class Hello {
   def sayHello() {
      val message = "Hello world"
      println(message)
   }
}

When processed with Pygments, we get:

image

This PR fix this problem by adding these two keywords to the appropriate list.

@Anteru Anteru merged commit ec70399 into pygments:master Dec 4, 2023
15 checks passed
@Anteru
Copy link
Collaborator

Anteru commented Dec 4, 2023

Thank you, good find!

@Anteru Anteru added this to the 2.18.0 milestone Apr 28, 2024
@Anteru Anteru added the A-lexing area: changes to individual lexers label Apr 28, 2024
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.

None yet

2 participants