-
Notifications
You must be signed in to change notification settings - Fork 175
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
Highlight block correctly in ERB file #2929
Comments
Hello! |
Sure. Feel free to put up a PR. |
The issue isn't with rendering (I'm using Neovim BTW, but VS Code also has the feature), but with highlighting the corresponding block's opening or closing statement. Notice the position of the cursor and the words with the blue highlights in my images. Here is the PR that introduced the feature and has a video showing it in action. |
I see, thanks for the additional context it is extremely helpful. I will take a look and try to fix in the next few days |
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):Without the
class:
keyword, it works fine:Calling
class=
as an HTML attribute is fine:Within a normal Ruby .rb file, this does not occur:
The text was updated successfully, but these errors were encountered: