Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
armed committed May 23, 2022
1 parent ff1e2c7 commit cdf3db1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cursor-doc/paredit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,10 @@ function isInPairsList(cursor: LispTokenCursor, pairForms: string[]): boolean {
}
if (opening.endsWith('[')) {
probeCursor.backwardUpList();
probeCursor.backwardList();
if (probeCursor.getPrevToken().raw.endsWith('{')) {
return false;
}
const fn = probeCursor.getFunctionName();
if (fn && pairForms.includes(fn)) {
return true;
Expand Down

0 comments on commit cdf3db1

Please sign in to comment.