Clarify comment prefix/suffix matching

a_star_module
Wilfred Hughes 2021-12-30 09:39:00 +07:00
parent 24bbff1bbe
commit 2d16d4aec4
1 changed files with 4 additions and 4 deletions

@ -159,7 +159,7 @@ line-based diffs. Line-diffs struggle if there are a small number of
common lines. The more precise, granular behaviour of tree diffs makes common lines. The more precise, granular behaviour of tree diffs makes
this problem much more common though. this problem much more common though.
## Similar Comments ## Matching Substrings In Comments
``` ```
// Before // Before
@ -171,9 +171,9 @@ foobar();
foobaz(); foobaz();
``` ```
`foobar` and `foobaz` are completely different, and should never be `foobar` and `foobaz` are completely different, and their common
matched up. For comments, we'd rather match up comments that are prefix `fooba` should not be matched up. However, matching common
textually similar. prefixes or suffixes for comments is desirable.
## Multiline Comments ## Multiline Comments