Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
rubyish - line spanning of parenthesised lists; checks on '<%' .. '%>…
…' placement
- Loading branch information
Showing
3 changed files
with
73 additions
and
27 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,28 @@ | ||
| puts "1..4" | ||
|
|
||
| a=[10, | ||
| 20] | ||
|
|
||
| puts "#{a[1]? 'ok' : 'nok'} 1 - array spanning lines" | ||
|
|
||
|
|
||
| b = [30 # some comments | ||
| , | ||
| 40 | ||
|
|
||
| ] | ||
| puts "#{b[1]? 'ok' : 'nok'} 2 - array spanning lines" | ||
|
|
||
| h = {"a" => 10, | ||
| "b" | ||
| , 20 | ||
| , "c" => 30 | ||
| } | ||
| puts "#{h<c>? 'ok' : 'nok'} 3 - hash spanning lines" | ||
|
|
||
|
|
||
| puts( | ||
|
|
||
| "ok 4 - call args spanning lines" | ||
|
|
||
| ) |
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