Skip to content

Commit b1eb810

Browse files
Apply suggestions from code review
Co-authored-by: Blaž Hrastnik <[email protected]>
1 parent 3c6877b commit b1eb810

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helix-core/src/syntax.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,10 @@ impl<'a> CapturedNode<'a> {
356356

357357
/// The number of matches a TS cursor can at once to avoid performance problems for medium to large files.
358358
/// Set with `set_match_limit`.
359-
/// Using such a limit means that we loose valid captures in, so there is fundamentally a tradeoff here.
359+
/// Using such a limit means that we lose valid captures in, so there is fundamentally a tradeoff here.
360360
///
361361
///
362-
/// Old tree sitter versions used a limit of 32 by default until this limit was removed in version `0.19.5` (must now best set manually).
362+
/// Old tree sitter versions used a limit of 32 by default until this limit was removed in version `0.19.5` (must now be set manually).
363363
/// However, this causes performance issues for medium to large files.
364364
/// In helix, this problem caused treesitter motions to take multiple seconds to complete in medium-sized rust files (3k loc).
365365
/// Neovim also encountered this problem and reintroduced this limit after it was removed upstream

0 commit comments

Comments
 (0)