Skip to content

Ruby text remains comment.block.documentation.ruby after block quotes end.  #139

Open

Description

@alexr00

Originally from @Zibokwe in microsoft/vscode#136007.

Snippet:

=begin test =end

puts "enter a number:"

image
It happens with any kind of block quote (in Ruby only), anything that begins with =begin will turn the rest of the code green even after the =end. The code after doesn't matter, it can be literally anything.

Activity

  1. elia commented on Oct 29, 2021

    @elia
    Contributor

    =end must start at the beginning of the line in order to end the comment block, so the current behavior is correct

    This is the correct way of using multiline comment blocks:

    =begin
    test
    =end
    
    puts "enter a number:"
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions