diff options
author | schneems <[email protected]> | 2023-03-08 08:51:00 -0600 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-04-06 15:45:28 +0900 |
commit | e5236471c3ce194199a6ceb70012eb2ca243407e (patch) | |
tree | 83455ffeecb919833e32998ed83fd018092cbd1c /lib/syntax_suggest/capture_code_context.rb | |
parent | 33cfd262fcfe65737b6d4cde416a24cd81406885 (diff) |
[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
Diffstat (limited to 'lib/syntax_suggest/capture_code_context.rb')
0 files changed, 0 insertions, 0 deletions