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

[Bug] JavaScript parens in HTML don't get colors #137

Open
Glench opened this issue Jan 5, 2020 · 2 comments
Open

[Bug] JavaScript parens in HTML don't get colors #137

Glench opened this issue Jan 5, 2020 · 2 comments

Comments

@Glench
Copy link

Glench commented Jan 5, 2020

Describe the bug

When working with javascript in a <script> tag, the parens aren't highlighted.

To Reproduce

Save the html below and open in vim.

<!doctype html>
<html>
    <head>
    </head>
    <body>
        <div>
        </div>
        <script type="text/javascript">
            console.log(((1+1)))
        </script>
    </body>
</html>

Screenshots

Screen Shot 2020-01-05 at 1 34 12 PM

The console.log() parens should be different colors. Only the html tags are different colors.

Additional context

Are you using some third-party syntax plugins?
Yes, I'm using vim-polyglot.

@luochen1990
Copy link
Owner

It seems that the script tag is matched by other rules, to confirm which is the rule and which plugin provided this rule, you can use the tool which I provided in README of this project, just search troubleshooting.

@Glench
Copy link
Author

Glench commented May 12, 2020

Thanks for your response! I will check it out later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants