Skip to content

Add bracketMatching #127

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cyfung1031
Copy link

@cyfung1031 cyfung1031 commented Mar 16, 2025

This is a feature similar to VSCode that we can see the brackets when cursor moves.

  • Screenshot 2025-03-17 at 2 02 43
  • Screenshot 2025-03-17 at 2 02 53

For most highlighters, they will mark the brackets as an independent token so we can easily match them without knowing their exact tokens (i.e. token information before HTML rendering is not required)

@antonmedv
Copy link
Owner

Very nice!

One core feature of codejar - the size. Can we try to implement this as addition to codejar? Maybe in separate file (codejar/matching-brackets.ts). This waty to can add a lot of functionality while still keep the size of the codejat small.

We can add some modifications to codejar to keep make adding integrations possible.

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