AdguardTeam / VscodeAdblockSyntax

Comprehensive extension to manage Adblock Syntax in VSCode: syntax highlighter, linter and much more. Available on the VSCode Marketplace.
https://marketplace.visualstudio.com/items?itemName=adguard.adblock
MIT License
74 stars 8 forks source link

JS embedding #83

Closed scripthunter7 closed 1 year ago

scripthunter7 commented 1 year ago

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 https://github.com/github-linguist/linguist/discussions/6020#discussioncomment-3397226