-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ERB-Ast: Do not try to parse erb-comments
- Fixes #434
- Loading branch information
1 parent
9461e91
commit 79fe6de
Showing
4 changed files
with
109 additions
and
50 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
37 changes: 37 additions & 0 deletions
37
spec/fixtures/used_keys/app/views/application/comments.html.erb
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,37 @@ | ||
<!-- i18n-tasks-use t('ignore.html.comments') --> | ||
<%= Translate.ignore_html_comment %> | ||
<% # i18n-tasks-use t('ruby.comment.works') %> | ||
<%= Translate.ruby_comment_works %> | ||
<%# i18n-tasks-use t('erb.comment.works') %> | ||
<%= Translate.erb_comment_works %> | ||
<!-- Below are hard to parse ERB. --> | ||
============================================= | ||
============================================= | ||
============================================= | ||
============================================= | ||
<%# Do not fail while parsing these: %> | ||
<%# this should not fail: ' %> | ||
<%# this is a multiline comment | ||
it's totally fine | ||
nothing should fail %> | ||
<% # https://github.com/glebm/i18n-tasks/issues/434 %> | ||
|
||
<!-- 32×32 --> | ||
<%# | ||
<!-- | ||
bla | ||
bla | ||
bla | ||
bla | ||
bla | ||
bla | ||
--> | ||
%> |
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