aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/match_brackets.rs
Commit message (Collapse)AuthorAge
* Use injection syntax trees for bracket matchingMichael Davis2024-01-28
| | | | | | | | Previously we used the root syntax tree for bracket matching. We can use the new functionality in `Syntax` for finding the correct syntax tree for a given byte range though so we use the correct syntax tree within injections. This improves bracket matching behavior within HTML injections like script or style tags for example.
* ignore empty TS nodes in match bracketPascal Kuthe2024-01-15
|
* don't crash in plaintext bracket match (mm) on empty filePascal Kuthe2024-01-15
|
* Reformat with nightly rustfmt for better let-else formatting (#7721)Philipp Mildenberger2023-07-27
|
* make TS matching fallback to plaintextPascal Kuthe2023-06-22
|
* Avoid false positives in non-fuzzy bracket matchPascal Kuthe2023-06-22
|
* match pairs which don't form a standalone TS nodePascal Kuthe2023-06-22
|
* feat(core): add plaintext matching fallback to tree-sitter matching (#4288)Alex Vinyals2023-06-05
|
* Fix match brackets comment (#1346)Stuart Hinson2021-12-24
|
* Jump to end char of surrounding pair from any cursor pos (#1121)Martin Junghanns2021-11-20
| | | | | | | | | | | | | | | * Jump to end char of surrounding pair from any cursor pos * Separate bracket matching into exact and fuzzy search * Add constants for bracket chars * Abort early if char under cursor is not a bracket * Simplify bracket char validation * Refactor node search and unify find methods * Remove bracket constants
* Adds single and double quotes to matching pairs (#995)Daniel S Poulin2021-11-08
| | | | This enables `mm` to work on quote characters as well as highlighting of matching quote when on it.
* Fixes crash on empty rust file. (#592)Cor Peters2021-08-16
| | | | | Fixes #591 Co-authored-by: Cor Peters <luctius@gmail.com>
* Fix ocassional panic when matching brackets.Nathan Vegdahl2021-07-23
|
* Fix all remaining warnings in helix-core except for two.Nathan Vegdahl2021-07-02
| | | | | I'm not sure how to address them, because they look like they might be bugs, and code is involved. Will poke the relevant people.
* Remove #[allow(unused)] from helix-core, and fix unused imports.Nathan Vegdahl2021-07-02
| | | | Still a bunch more warnings to fix in core, but it's a start.
* Don't panic on empty file/buffer (#108)notoria2021-06-05
|
* Convert byte index to char index for `find`notoria2021-06-04
|
* Fix match_brackets::findnotoria2021-06-03
|
* minor: Remove a few unwraps.Blaž Hrastnik2021-03-26
|
* clippy lintBlaž Hrastnik2021-03-24
|
* Implement m / match_brackets (using tree sitter).Blaž Hrastnik2021-03-22