Skip to content

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
@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.

2 participants