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

Comment highlighting breaks on closing curly #56

Open
hooke opened this issue Jul 15, 2015 · 4 comments
Open

Comment highlighting breaks on closing curly #56

hooke opened this issue Jul 15, 2015 · 4 comments
Labels

Comments

@hooke
Copy link

hooke commented Jul 15, 2015

Well, the problem is clearly seen from the screenshots below.

image

image

I couldn't find any strict recomentation for JS to break the line after the closing brace. JSHint doesn't generate any warnings too.

@jelera
Copy link
Owner

jelera commented Jul 26, 2015

I've tried to replicate this issue, but I didn't get the result as in the screenshot. Send me a gist with more source code so I can test this.

@hooke
Copy link
Author

hooke commented Jul 29, 2015

This is the example gist: https://gist.github.com/hooke/cd52a602c94f97ce750d
In gist comments are highlighted correctly.
In my vim with vim-javascript-syntax plugin it looks like:
image

@ghost
Copy link

ghost commented Sep 7, 2015

Same problem as @hooke. Very confusing because even though the code is actually commented out, the syntax highlighting makes it appear as if the code will run.
Note that I only encounter this issue when using a multi-line comment /* */ and NOT a single line comment //, and then typing a closing curly bracket }
screen shot 2015-09-07 at 10 10 53

@ghost
Copy link

ghost commented Apr 27, 2016

Javascript

oopz

@jelera jelera added the Bug label Jul 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants