ruby/spec/syntax_suggest/unit
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_spec.rb Merge syntax_suggest master 2022-12-09 16:36:22 +09:00
around_block_scan_spec.rb [ruby/syntax_suggest] Add comments and refactor AroundBlockScan methods 2023-04-06 15:45:29 +09:00
block_expand_spec.rb [ruby/syntax_suggest] Rollback comment indentation behavior 2023-04-06 15:45:29 +09:00
capture_code_context_spec.rb [ruby/syntax_suggest] Clean up output 2023-04-25 14:43:06 +09:00
clean_document_spec.rb [ruby/syntax_suggest] Rollback comment indentation behavior 2023-04-06 15:45:29 +09:00
cli_spec.rb Update SyntaxSuggest to use angle brackets > 2022-11-30 12:58:47 +09:00
code_block_spec.rb
code_frontier_spec.rb
code_line_spec.rb [ruby/syntax_suggest] Preserve whitespace in front of comments 2023-04-06 15:45:28 +09:00
code_search_spec.rb [ruby/syntax_suggest] Fix sibling bug to #177 2023-04-06 15:45:28 +09:00
core_ext_spec.rb v1.0.4 2023-04-06 15:49:26 +09:00
display_invalid_blocks_spec.rb [ruby/syntax_suggest] Clean up output 2023-04-25 14:43:06 +09:00
explain_syntax_spec.rb
lex_all_spec.rb
pathname_from_message_spec.rb
priority_queue_spec.rb