Yusuke Endoh d511e6960f [ruby/syntax_suggest] The annotation must end with a new line
syntax_suggest did not work great when there is no new line at the end
of the input file.

Input:
```
def foo
end
end # No newline at end of file
```

Previous output:
```
$ ruby test.rb
test.rb: --> test.rb
Unmatched `end', missing keyword (`do', `def`, `if`, etc.) ?
> 1  def foo
> 2  end
> 3  end # No newline at end of filetest.rb:3: syntax error, unexpected `end' (SyntaxError)
end # No newline at end of file
^~~
```

Note that "test.rb:3: ..." is appended to the last line of the
annotation.

This change makes sure that the annotation ends with a new line.

New output:
```
$ ruby test.rb
test.rb: --> test.rb
Unmatched `end', missing keyword (`do', `def`, `if`, etc.) ?
> 1  def foo
> 2  end
> 3  end # No newline at end of file
test.rb:3: syntax error, unexpected `end' (SyntaxError)
end # No newline at end of file
^~~
```

https://github.com/ruby/syntax_suggest/commit/db4cf9147d
2023-04-06 15:45:30 +09:00
..
2022-12-05 05:59:33 +00:00
2022-11-29 04:58:29 +00:00
2023-04-05 21:40:40 +00:00
2023-03-31 03:47:56 +00:00
2022-12-14 05:49:14 +00:00
2023-03-31 01:14:34 +00:00
2023-04-05 08:59:12 +09:00
2023-03-28 02:12:22 +00:00
2023-04-03 02:45:42 +00:00
2022-11-28 04:40:26 +00:00
2023-03-21 15:05:29 +00:00
2023-04-03 05:19:00 +00:00
2023-04-03 02:40:37 +00:00
2022-12-05 06:32:03 +00:00
2023-04-05 21:40:40 +00:00
2023-01-12 05:41:59 +00:00
2022-12-05 07:35:19 +00:00
2022-08-19 10:02:24 +09:00
2023-03-30 10:44:39 +00:00
2023-02-16 00:57:08 +00:00
2023-04-03 02:41:44 +00:00
2022-12-05 08:18:33 +00:00
2022-04-22 11:59:54 +09:00