Skip to content

Commit

Permalink
Merge pull request #675 from nobu/bug/misplaced-expression
Browse files Browse the repository at this point in the history
Place expression next line of `else`
  • Loading branch information
aycabta authored Dec 6, 2018
2 parents d212c5f + 0c23002 commit f744a93
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 f744a93

Please sign in to comment.