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

Groovy: Added string interpolation without hook #3366

Conversation

RunDevelopment
Copy link
Member

This rewrites Groovy strings to tokenize string interpolation without using a hook.

The wrap hook prevents string interpolations from working when Groovy is embedded, extended, or aliased. This PR fixes that by changing the grammar to do it without the hook. It's not exactly equivalent, but it's good enough IMO.

@github-actions
Copy link

github-actions bot commented Mar 5, 2022

JS File Size Changes (gzipped)

A total of 1 files have changed, with a combined diff of -39 B (-4.3%).

file master pull size diff % diff
components/prism-groovy.min.js 900 B 861 B -39 B -4.3%

Generated by 🚫 dangerJS against ae8b7df

@RunDevelopment RunDevelopment merged commit 5617765 into PrismJS:master Mar 17, 2022
@RunDevelopment RunDevelopment deleted the groovy-string-interpolation-without-hook branch March 17, 2022 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant