Skip to content

Commit

Permalink
Place expression next line of else
Browse files Browse the repository at this point in the history
It is not a bug, but very confusing when multiple lines block
follows.
  • Loading branch information
nobu committed Dec 5, 2018
1 parent b94edb0 commit 0c23002
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rdoc/markup/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,8 @@ def tokenize input
when @s.scan(/(.*?)::( +|\r?$)/) then
[:NOTE, @s[1], *token_pos(pos)]
# anything else: :TEXT
else @s.scan(/(.*?)( )?\r?$/)
else
@s.scan(/(.*?)( )?\r?$/)
token = [:TEXT, @s[1], *token_pos(pos)]

if @s[2] then
Expand Down

0 comments on commit 0c23002

Please sign in to comment.