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

JS embedding #83

Merged
merged 5 commits into from
May 2, 2023
Merged

JS embedding #83

merged 5 commits into from
May 2, 2023

Conversation

scripthunter7
Copy link
Member

This PR embeds the JS grammar into the adblock grammar, in a similar analogy to how JS or CSS is embedded in HTML. The picture below shows the result:

image

Since JS is an "external grammar", so it should be installed separately, but both VSCode and GitHub Linguist will recognize it. See github-linguist/linguist#6020 (comment)

the grammar loader should be able to load the embedded grammar scope at least at a minimum level
in fact it is sufficient to show only the names of the tests, no more details are needed for the moment
@scripthunter7 scripthunter7 requested a review from maximtop April 28, 2023 09:33
@scripthunter7 scripthunter7 self-assigned this Apr 28, 2023
@scripthunter7 scripthunter7 merged commit 14ce25f into master May 2, 2023
@scripthunter7 scripthunter7 deleted the feature/embedded-js branch May 2, 2023 07:59
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.

2 participants