-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct misclassification of .js.erb files (#4427)
* Correct misclassification of .js.erb files Previously JavaScript files containing embedded Ruby, for example files used to render JavaScript for client-side execution in response to an AJAX request in a Rails application, were misclassified as HTML+ERB. This commit corrects this by classifying such source files as JavaScript+ERB and grouping under the parent JavaScript language. Signed-off-by: Charlie Jonas <[email protected]> * Use JavaScript syntax highlighting for JS+ERB
- Loading branch information
Showing
3 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$("<%= escape_javascript(render @model) %>").appendTo("#models"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters