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

Jsxtags: shaded brackets in JSX, just like TS does. #368

Closed
wants to merge 42 commits into from
Closed

Conversation

cristianoc
Copy link
Collaborator

No description provided.

cristianoc and others added 30 commits March 9, 2022 13:52
With upper case ids, emit Token.JsxTag
With lower case ids, emit Token.Variable

Still need to do module declarations and expressions (and e.g. open M etc).
This is done in two places:
The textmate grammar handles the cases that can be figured out locally:
- "<" in "<div ..."
- "</"
- "/>"
- "<>"
- "</>"

Semantic highlighting handles the cases that cannot be figured out locally:
- ">" in "<div __props__>"
- ">" in "</div>"

These cases can't be figures out locally as on the lhs of ">" there could be pretty much anything.
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