Skip to content
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

feat: add an --apply-all-captures argument to highlight & test #2412

Merged
merged 4 commits into from
Aug 18, 2023

Conversation

amaanq
Copy link
Member

@amaanq amaanq commented Jul 20, 2023

Related to #2396

cli/src/test_highlight.rs Outdated Show resolved Hide resolved
@amaanq amaanq requested review from ahlinc and maxbrunsfeld and removed request for ahlinc July 20, 2023 09:13
cli/src/main.rs Outdated Show resolved Hide resolved
@amaanq
Copy link
Member Author

amaanq commented Jul 20, 2023

A couple notes:

Queries by default are still used from either the one specified in package.json or tree-sitter-LANG/queries, this makes it hard for downstream to specify their own queries - I can add another flag for this if that'd be ok

I made the convention style for custom files simple, newline separated strings, but comments are allowed starting with ;.

@amaanq
Copy link
Member Author

amaanq commented Jul 27, 2023

@patrickt @dcreager (or matter of fact anyone on @tree-sitter/semantic-code), it'd be nice to get some thoughts on the linked issue, Max's words, and this PR. Currently this PR is not a breaking change but a followup one to make last-wins precedence the default would be, as Max and I (and others) agree that it's definitely much better to work with than short-circuiting.

@amaanq amaanq requested a review from a team July 27, 2023 12:31
@amaanq amaanq force-pushed the apply-all-captures branch 3 times, most recently from a97bfb5 to 7ee9314 Compare August 3, 2023 13:24
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

Successfully merging this pull request may close these issues.

None yet

3 participants