ruby/lib/syntax_suggest
schneems 3d5febf65b [ruby/syntax_suggest] Clean up output
I previously left a comment stating I didn't know why a certain method existed. In investigating the code in `CaptureCodeContext#capture_before_after_kws` I found that it was added as to give a slightly less noisy output.

The docs for AroundBlockScan#capture_neighbor_context only describe keywords as being a primary concern. I modified that code to only include lines that are keywords or ends. This reduces the output noise even more.

This allows me to remove that `start_at_next_line` method.

One weird side effect of the prior logic is it would cause this code to produce this output:

```
        class OH
          def hello

          def hai
          end
        end
```

```
          1  class OH
        > 2    def hello
          4    def hai
          5    end
          6  end
```

But this code to produce this output:

```
        class OH
          def hello
          def hai
          end
        end
```

```
          1  class OH
        > 2    def hello
          4    end
          5  end
```
Note the missing `def hai`. The only difference between them is that space.

With this change, they're now both consistent.

4a54767a3e
2023-04-25 14:43:06 +09:00
..
api.rb [ruby/syntax_suggest] Handle alias already exists when debugging 2023-04-06 15:45:27 +09:00
around_block_scan.rb [ruby/syntax_suggest] Clean up output 2023-04-25 14:43:06 +09:00
block_expand.rb [ruby/syntax_suggest] Add comments and refactor AroundBlockScan methods 2023-04-06 15:45:29 +09:00
capture_code_context.rb [ruby/syntax_suggest] Clean up output 2023-04-25 14:43:06 +09:00
clean_document.rb [ruby/syntax_suggest] Rollback comment indentation behavior 2023-04-06 15:45:29 +09:00
cli.rb Update SyntaxSuggest to use angle brackets > 2022-11-30 12:58:47 +09:00
code_block.rb
code_frontier.rb
code_line.rb [ruby/syntax_suggest] Rollback comment indentation behavior 2023-04-06 15:45:29 +09:00
code_search.rb
core_ext.rb [ruby/syntax_suggest] The annotation must end with a new line 2023-04-06 15:45:30 +09:00
display_code_with_line_numbers.rb Update SyntaxSuggest to use angle brackets > 2022-11-30 12:58:47 +09:00
display_invalid_blocks.rb [ruby/syntax_suggest] Do not output "Syntax OK" when there's an error 2022-11-28 20:55:41 +09:00
explain_syntax.rb
left_right_lex_count.rb
lex_all.rb
lex_value.rb
parse_blocks_from_indent_line.rb [ruby/syntax_suggest] Add comments and refactor AroundBlockScan methods 2023-04-06 15:45:29 +09:00
pathname_from_message.rb
priority_engulf_queue.rb
priority_queue.rb
ripper_errors.rb
syntax_suggest.gemspec
unvisited_lines.rb
version.rb v1.0.4 2023-04-06 15:49:26 +09:00