Skip to content

Combine text / parse-tree surrounding pair delimiter finder logic #1600

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pokey opened this issue Jul 7, 2023 · 1 comment
Closed

Combine text / parse-tree surrounding pair delimiter finder logic #1600

pokey opened this issue Jul 7, 2023 · 1 comment

Comments

@pokey
Copy link
Member

pokey commented Jul 7, 2023

Idea for an alternative implementation of surrounding pairs
We start off with a pure text based implementation that finds all the delimiters. We then use Tree sitter to disqualify or quantify the delimiters. For example tree sitter could determine that an angle bracket is actually a less than operator, that the parenthesis is inside a string or a comment. As well as quantifying if a quote is the opening or closing of a string.

Originally posted by @AndreasArvidsson in #825 (comment)

We should do this one after #1061

@AndreasArvidsson
Copy link
Member

Implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants