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

Add support for adding multiple spans for single capture in TsSpanFactory #491

Merged
merged 3 commits into from
Sep 28, 2023

Conversation

itsaky
Copy link
Contributor

@itsaky itsaky commented Sep 27, 2023

This PR updates the TsSpanFactory API so that multiple (not-overlapping) spans can be created for a single capture. This feature is useful for cases where a capture's node(s) may need to be represented with different spans.

An example implementation for this (with static color spans) has been added to the Tree Sitter Java language in the sample application. Here is a screenshot :

@Rosemoe Rosemoe merged commit 101b21a into Rosemoe:main Sep 28, 2023
2 checks passed
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.

2 participants