Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Class with static initialization block highlighting issue #1254

Open
blmatthews opened this issue Dec 27, 2022 · 0 comments
Open

Class with static initialization block highlighting issue #1254

blmatthews opened this issue Dec 27, 2022 · 0 comments

Comments

@blmatthews
Copy link

class Test
{
    static
    {
        console.log('here');
    }
} // This is highlighted as an error. Removing the } on the previous line "fixes" it.

I tried a .vimrc that only does syntax enable and includes this plugin. I also tried various colorschemes. Neither made a difference. Wrapping it in some HTML as shown in the image below lets a browser load it without complaint and execute the console.log('here') (the console.log is there only to show the browser thinks it’s valid HTML and Javascript, the closing } is highlighted as an error even without the console.log line).

Screen Shot 2022-12-27 at 2 24 04 PM

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant