Skip to content

Nested multiline comments mess up syntax highlighting #3546

Closed

Description

@DanTup

See "const" on line 47. Line 41 is also wrong with the textmate grammar, but semantic tokens fixes it (I'm not sure why it doesn't also fix const).

Screenshot 2021-08-31 at 11 56 50

Activity

  1. added this to the v3.27.0 milestone on Aug 31, 2021
  2. DanTup commented on Sep 8, 2021

    @DanTup
    MemberAuthor

    Small repro:

    /**
     *   /**
     *    * bbb
     *    */
     */
    String foo = 'test';
    
    

    Seems to only occur when there are exactly 4 spaces before the nested closing comment - it doesn't seem to end the scope.

    Screenshot 2021-09-08 at 14 04 27

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

    in editorRelates to code editing or language featuresis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions