Skip to content

Comment highlighting breaks on closing curly #56

Open
@hooke

Description

@hooke

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.

Activity

jelera

jelera commented on Jul 26, 2015

@jelera
Owner

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

hooke commented on Jul 29, 2015

@hooke
Author

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

ghost commented on Sep 7, 2015

@ghost

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

ghost commented on Apr 27, 2016

@ghost

Javascript

oopz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jelera@hooke

        Issue actions

          Comment highlighting breaks on closing curly · Issue #56 · jelera/vim-javascript-syntax