rainbow icon indicating copy to clipboard operation
rainbow copied to clipboard

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

Open Glench opened this issue 5 years ago • 2 comments

Describe the bug

When working with javascript in a

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.

Glench avatar Jan 05 '20 18:01 Glench

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.

luochen1990 avatar May 12 '20 07:05 luochen1990

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

Glench avatar May 12 '20 12:05 Glench