1
0
mirror of https://github.com/helix-editor/helix synced 2026-03-23 14:11:55 +01:00
helix/helix-core/src
Ryan Mehri a27d192db6
fix: freeze in markdown when matching brackets (#15351)
Previously, for a nested set of pairs in Markdown such as:

```markdown
[foo "bar" b|az]
[foo (bar) b|az]
```

Trying to do `mam` or similar would freeze.

The generated parse tree for the former looks like this:

```
0:0  - 1:0    inline
0:0  - 0:15     shortcut_link
0:0  - 0:1        "["
0:1  - 0:14       link_text
0:5  - 0:6          """
0:9  - 0:10         """
0:14 - 0:15       "]"
```

The node surrounding the cursor is `link_text` and it has two children
`"` but these are outside of the cursor, so we don't want to select them.
This change makes it so we check that `pos_` is within the `open` and
`close` node range so that we don't get stuck in a loop of finding
the same `"` pair.
2026-03-14 14:00:11 -05:00
..
doc_formatter Use the first char in a grapheme for classification (#12483) 2025-02-01 17:09:45 -06:00
increment Use non-deprecated chrono Duration functions 2024-03-14 14:13:56 +09:00
snippets fix(lints): clippy 1.93 (#15232) 2026-02-03 08:36:58 +09:00
syntax feat(lsp): documentLink highlights (#15235) 2026-03-14 13:02:13 -05:00
auto_pairs.rs chore: clean up clippy lints (#11377) 2024-08-01 06:39:46 +09:00
case_conversion.rs add snippet system to helix core 2024-12-17 13:34:39 -05:00
chars.rs Revert "Replace unicode-general-category with icu-properties (#10989)" (#11006) 2024-06-23 10:05:53 +09:00
command_line.rs feat: give formatters access to filename (#13429) 2025-04-28 17:34:05 -05:00
comment.rs syntax: Move config types to a separate module 2025-05-13 18:30:21 -04:00
completion.rs Complete words from open buffers (#13206) 2025-07-18 09:51:00 -05:00
config.rs chore: Improve error messages for malformed languages.toml (#14960) 2025-12-15 09:00:48 -05:00
diagnostic.rs fix(lints): clippy 1.93 (#15232) 2026-02-03 08:36:58 +09:00
diff.rs update imara-diff (#13722) 2025-06-14 16:14:27 -04:00
doc_formatter.rs doc_formatter: Remove a resolved TODO 2026-01-18 14:38:29 -05:00
editor_config.rs editorconfig: allow empty alternates (#14107) 2025-07-28 18:02:42 -05:00
fuzzy.rs Bump nucleo to v0.4.1 2024-07-15 09:31:32 -04:00
graphemes.rs fix(lints): clippy 1.93 (#15232) 2026-02-03 08:36:58 +09:00
history.rs Prefer RopeSlice to &Rope in helix_core::syntax 2023-07-27 11:50:19 +09:00
indent.rs fix(lints): clippy 1.89-1.90 (#14223) 2025-09-22 08:44:17 -05:00
lib.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
line_ending.rs Add config for default line ending (#5621) 2023-06-16 12:02:15 -05:00
macros.rs Split parts of helix-term into helix-view. 2020-09-21 18:24:16 +09:00
match_brackets.rs fix: freeze in markdown when matching brackets (#15351) 2026-03-14 14:00:11 -05:00
movement.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
object.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
position.rs don't set the row position to the empty last line with the + cli arg (#14590) 2025-10-22 08:37:19 -05:00
rope_reader.rs search buffer contents during global search (#5652) 2023-07-11 21:26:11 +09:00
search.rs Fix find char with line ending (#14437) 2026-03-14 11:35:36 -05:00
selection.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
snippets.rs add snippet system to helix core 2024-12-17 13:34:39 -05:00
surround.rs Fix find char with line ending (#14437) 2026-03-14 11:35:36 -05:00
syntax.rs don't mark all missing nodes as named in :tree-sitter-subtree (#15176) 2026-01-25 08:28:35 -06:00
test.rs chore(msrv): bump from 1.82 to 1.87 (#15196) 2026-01-29 08:35:40 -06:00
text_annotations.rs Replace tree-sitter with tree-house 2025-05-13 18:43:43 -04:00
textobject.rs Fallback to tree-sitter when selecting around " while cursor is on " (#15308) 2026-02-18 08:54:29 -06:00
transaction.rs fix(lints): clippy 1.89-1.90 (#14223) 2025-09-22 08:44:17 -05:00
uri.rs Make helix_core::Uri cheap to clone 2024-09-03 09:50:31 -04:00
wrap.rs fix: simplify text reflowing strategy to improve language compatibility (#12048) 2024-11-20 16:40:43 -06:00