-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix conversion of multi-line method arguments
The regexps responsible for converting method calls with blocks did not account for arguments split across multiple lines. This patch enables multi-line method arguments, as long as every line except the last ends with a comma (and zero or more spaces).
- Loading branch information
1 parent
3b0acf0
commit 0eb8d76
Showing
5 changed files
with
28 additions
and
2 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
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,10 @@ | ||
<%= form_with url: search_path, | ||
class: "search-form", | ||
method: :get do |form| %> | ||
<div class="form-group"> | ||
<%= form.text_field :query, | ||
class: "form-control" %> | ||
</div> | ||
<%= form.submit "Search", | ||
class: "btn" %> | ||
<% end %> |
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,8 @@ | ||
= form_with url: search_path, | ||
class: "search-form", | ||
method: :get do |form| | ||
.form-group | ||
= form.text_field :query, | ||
class: "form-control" | ||
= form.submit "Search", | ||
class: "btn" |
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