Add ERB highlighting inside of script tags by jrectenwald · Pull Request #240 · atom/language-ruby · GitHub
Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Add ERB highlighting inside of script tags - #240

Merged
darangi merged 1 commit into
atom:masterfrom
jrectenwald:enable-erb-highlighting-in-script-tag
Feb 4, 2021
Merged

darangi merged 1 commit into
atom:masterfrom
jrectenwald:enable-erb-highlighting-in-script-tag

Conversation

@jrectenwald

@jrectenwald jrectenwald commented Oct 16, 2018 •

Copy link
Copy Markdown
Contributor

Description of the Change

This adds embedded js rules to the grammar for html.erb files so that erb syntax highlighting will work inside of script tags.

Alternate Designs

None

Benefits

ERB highlighting will work correctly when placed inside of a script tag.

Before:
before

After
after

Possible Drawbacks

None that I am aware of

Applicable Issues

#192 and #230

@darangi

darangi commented Feb 4, 2021

Copy link
Copy Markdown
Contributor

@darangi
darangi merged commit f2e9f73 into atom:master Feb 4, 2021
@jrectenwald
jrectenwald deleted the enable-erb-highlighting-in-script-tag branch February 6, 2021 04:14
@jrectenwald

Copy link
Copy Markdown
Contributor Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants