Skip to content

Commit

Permalink
Add auto pairs for same-char pairs (#1219)
Browse files Browse the repository at this point in the history
* Add auto pairs for same-char pairs

* Add unit tests for all existing functionality
* Add auto pairs for same-char pairs (quotes, etc). Account for
  apostrophe in prose by requiring both sides of the cursor to be
  non-pair chars or whitespace. This also incidentally will work for
  avoiding a double single quote in lifetime annotations, at least until
  <> is added
* Slight factor of moving the cursor transform of the selection to
  inside the hooks. This will enable doing auto pairing with selections,
  and fixing the bug where auto pairs destroy the selection.

Fixes #1014
  • Loading branch information
dead10ck authored Dec 13, 2021
1 parent 730d3be commit 94535fa
Show file tree
Hide file tree
Showing 3 changed files with 351 additions and 79 deletions.
Loading

0 comments on commit 94535fa

Please sign in to comment.