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

Updates for mcfunction syntax (lexer/minecraft) #2527

Open
RitikShah opened this issue Sep 29, 2023 · 0 comments
Open

Updates for mcfunction syntax (lexer/minecraft) #2527

RitikShah opened this issue Sep 29, 2023 · 0 comments

Comments

@RitikShah
Copy link
Contributor

In Minecraft 1.20.2, a new grammar feature was added: macros. These allow for lines to start with $ and macro substitutions to be performed within the line via $(<var-name>). They also allow for line-continuations via \.

This issue is here to track these new developments and implement new syntax additions to the pygments lexer (alongside some lingering bugs). We can use the textmate grammar I developed as a comparison.

I fully plan to develop a PR once I get a bit more free time to tackle this but I figured to leave an issue open for this.


Initial PR (by me): #2107.
Follow Up PR (by @MiemieMethod): #2276

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

No branches or pull requests

1 participant