From 093cfea931816007b487fde393b888d6db00ee97 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Thu, 3 Jul 2025 19:27:49 +0100 Subject: [PATCH] Fix doc comment syntax --- src/parse/tree_sitter_parser.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parse/tree_sitter_parser.rs b/src/parse/tree_sitter_parser.rs index ef59c3d27..8ad40d827 100644 --- a/src/parse/tree_sitter_parser.rs +++ b/src/parse/tree_sitter_parser.rs @@ -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