Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Grow right grows over curly braces #2

Open
nickik opened this issue Jan 23, 2014 · 2 comments
Open

Grow right grows over curly braces #2

nickik opened this issue Jan 23, 2014 · 2 comments

Comments

@nickik
Copy link

nickik commented Jan 23, 2014

While developing I oven had strange non matching endings of functions. I investigated and found the following problem.

{:data (+ 1) 2}

You want to get this
{:data (+ 1 2)}

But when you grow (+ 1) to the right you get:

{:data (+ 1 2})

@nickik
Copy link
Author

nickik commented Jan 23, 2014

I will try to fix this myself but maybe somebody is faster then me.

@nathanmesser
Copy link

The issue is related to line starts and ends, as it only occurs if the outer brackets are on the line start or end.
It occurs for both grow left and grow right

nathanmesser added a commit to nathanmesser/Paredit that referenced this issue Jan 27, 2014
…art or end when scanning for opening and closing brackets
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants