Fix doc comment syntax

pull/856/head
Wilfred Hughes 2025-07-03 19:27:49 +07:00
parent 62014159d1
commit 093cfea931
1 changed files with 4 additions and 4 deletions

@ -36,14 +36,14 @@ pub(crate) struct TreeSitterConfig {
/// ignore their children.
///
/// Difftastic only cares about list delimiters and atom
/// contents. This ensures that "x" and " x" are different, but
/// [x] and [ x] are not.
/// contents. This ensures that `"x"` and `" x"` are different,
/// but `[x]` and `[ x]` are not.
///
/// This causes problems for tree-sitter grammars that have more
/// complex structure for literals. If string interpolation
/// produces an AST with a separate interpolation node, difftastic
/// will think that "$x" and " $x" are the same, because the atom
/// is just $x and the delimiter is ".
/// will think that `"$x"` and `" $x"` are the same, because the atom
/// is just `$x` and the delimiter is `"`.
///
/// This problem also occurs when the tree-sitter AST is missing
/// some children. This is known limitation of tree-sitter, and