Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Conversation

maxbrunsfeld
Copy link
Contributor

@maxbrunsfeld maxbrunsfeld commented Nov 14, 2018

Fixes #600

Rationale

When we introduced Tree-sitter, we removed the feature of syntax-highlighting JSDoc comments in JavaScript. This PR adds back JSDoc highlighting using a new Tree-sitter parser: tree-sitter-jsdoc.

screen shot 2018-11-14 at 3 30 38 pm

Possible Drawbacks

This adds many more injections in some JavaScript files, so it may affect performance. In the course of adding this, I already found and fixed two performance bottlenecks related to large numbers of language injections:

/cc @Ben3eeE

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

Successfully merging this pull request may close these issues.

JSDocs comments no longer higlighted
1 participant