This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Change scopes in comparison to language-babel #628
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requirements
Description of the Change
unquoted
tomember_expression > identifier
component.jsx
to jsx componentsspread
scope to the spread operatorsupport.variable.dom
Benefits
Users of
language-babel
will see more familiar highlighting or can configure it to be more familiar and still get the benefits of tree-sitter parsersPossible Drawbacks
support.variable.dom
has thevariable
class so these will be highlighted as red in one-syntax. This is what TextMate scoped them as except forconsole
which wasentity.name.other.console.js
or something.I am open to change the scope for
support.variable.dom
and move backwindow
anddocument
to besupport.variable
if someone has a better scope name.Applicable Issues
Refs #625
/cc: @maxbrunsfeld @atomiks