Syntax highlight for ERB in heredoc #2863
Labels
enhancement
New feature or request
good-first-issue
Good for newcomers
help-wanted
Extra attention is needed
I have checked that this feature is not already implemented
Use case
I'm writing a lot of my ViewComponent with inline
erb
as heredoc and it would be great if the syntax highlight works for it as well.Description
Based on the current grammar, using
ERB
in heredoc won't get syntax highlighted like the other supported language in this file.I tried with
HTML
and it worked only with the non Ruby part.It's quite odd that there are support for JS, GRAPHQL, and other languages but not ERB.
Implementation
We only need to add a configuration for ERB to the grammar file.
The text was updated successfully, but these errors were encountered: