Skip to content

Highlight block correctly in ERB file #2929

Closed
@jbigler

Description

@jbigler

When highlighting the control block structure within an ERB file, if there is a block defining word used as a method argument keyword inside the block, it will match the end statement with that keyword instead of the control block.

With a class: argument in a method call (with or without parentheses):
Image

Without the class: keyword, it works fine:
Image

Calling class= as an HTML attribute is fine:
Image

Within a normal Ruby .rb file, this does not occur:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood-first-issueGood for newcomershelp-wantedExtra attention is neededpinnedThis issue or pull request is pinned and won't be marked as stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions