Commit graph

3 commits

Author SHA1 Message Date
Schneems
5a2d70ef73 [ruby/syntax_suggest] Bump minimum Ruby version & update standardrb
73753518e9
2023-12-04 22:29:44 +00:00
schneems
e5236471c3 [ruby/syntax_suggest] Preserve whitespace in front of comments
When removing comments I previously replaced them with a newline. This loses some context and may affect the order of the indent search which in turn affects the final result. By preserving whitespace in front of the comment, we preserve the "natural" indentation order of the line while also allowing the parser/lexer to see and join naturally consecutive (method chain) lines.

close https://github.com/ruby/syntax_suggest/pull/177
2023-04-06 15:45:28 +09:00
Hiroshi SHIBATA
0d9f4ea0d4 Import spec examples from ruby/syntax_suggest 2022-08-26 12:15:47 +09:00