Skip to content

Commit 093cfea

Browse files
committed
Fix doc comment syntax
1 parent 6201415 commit 093cfea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/parse/tree_sitter_parser.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ pub(crate) struct TreeSitterConfig {
3636
/// ignore their children.
3737
///
3838
/// Difftastic only cares about list delimiters and atom
39-
/// contents. This ensures that "x" and " x" are different, but
40-
/// [x] and [ x] are not.
39+
/// contents. This ensures that `"x"` and `" x"` are different,
40+
/// but `[x]` and `[ x]` are not.
4141
///
4242
/// This causes problems for tree-sitter grammars that have more
4343
/// complex structure for literals. If string interpolation
4444
/// produces an AST with a separate interpolation node, difftastic
45-
/// will think that "$x" and " $x" are the same, because the atom
46-
/// is just $x and the delimiter is ".
45+
/// will think that `"$x"` and `" $x"` are the same, because the atom
46+
/// is just `$x` and the delimiter is `"`.
4747
///
4848
/// This problem also occurs when the tree-sitter AST is missing
4949
/// some children. This is known limitation of tree-sitter, and

0 commit comments

Comments
 (0)