Skip to content

Include C++26 keywords and Java module keywords#2955

Merged
birkenfeld merged 8 commits intopygments:masterfrom
mikomikotaishi:master
Feb 20, 2026
Merged

Include C++26 keywords and Java module keywords#2955
birkenfeld merged 8 commits intopygments:masterfrom
mikomikotaishi:master

Conversation

@mikomikotaishi
Copy link
Copy Markdown
Contributor

@mikomikotaishi mikomikotaishi commented Aug 24, 2025

Pygments does not highlight C++26 keywords or module-related keywords for Java. This pull-request adds support for these keywords in these languages. It further updates import statements to support import module (added in Java 25), and adds nullptr to C (added in C23).

@birkenfeld
Copy link
Copy Markdown
Member

Hi, sorry for the delay and thanks for the PR. Can you update/add test cases to use the new keywords/features (like Java module)?

@mikomikotaishi
Copy link
Copy Markdown
Contributor Author

OK, I'll update some of the current tests to test these new additions.

@mikomikotaishi
Copy link
Copy Markdown
Contributor Author

@birkenfeld I think this should be an adequate test of Java module keywords, let me know if anything else needs to be tested.

@birkenfeld
Copy link
Copy Markdown
Member

Thanks a lot!

@birkenfeld birkenfeld merged commit 1e5afcd into pygments:master Feb 20, 2026
15 checks passed
@meow7781
Copy link
Copy Markdown

hii< @miko what ur x(twiter) need some guide

@mikomikotaishi
Copy link
Copy Markdown
Contributor Author

With something relating to Pygments or this specific pull request?

@Anteru Anteru added this to the 2.20.0 milestone Mar 26, 2026
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.

4 participants