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

Add support for JSX tags to the CoffeeScript grammar #172

Merged
merged 3 commits into from
Jan 25, 2019

Conversation

cuberoot
Copy link

@cuberoot cuberoot commented Oct 10, 2018

Description of the Change

In CoffeeScript 2.0, JSX tags became part of the language (https://coffeescript.org/#jsx). This change adds recognition of tags and attributes to the existing CoffeeScript grammar.

Alternate Designs

No other designs were considered as this is a simple addition to an exisiting grammar.

Benefits

This change will add syntax highlighting for JSX tags and attributes in Atom.

Possible Drawbacks

A bug could cause incorrect tokenization of CoffeeScript code and cause issues in syntax highlighting

Applicable Issues

#135

In CoffeeScript 2.0, JSX tags became part of the language (https://coffeescript.org/#jsx). This change adds recognition of tags and attributes to the existing coffeescript grammar.
And, also kick the build which seems to have hiccupped
@cuberoot cuberoot mentioned this pull request Oct 22, 2018
1 task
@rsese
Copy link

rsese commented Oct 22, 2018

Thanks! Someone from the team will take a look as soon as they can.

@lee-dohm
Copy link
Contributor

Thanks for the contribution! We're currently deciding the way forward for our official language packages with the advent of tree-sitter. We'll get back to you as soon as we can once we make some other decisions.

@cuberoot
Copy link
Author

@lee-dohm Ok, thanks. Let me know either way. I could possibly contribute to a tree-sitter solution if you go that direction.

Copy link
Contributor

@smashwilson smashwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Gave it a shot with some of the CoffeeScript JSX examples and it looks good to me. :shipit:

@smashwilson smashwilson merged commit a1ca025 into atom:master Jan 25, 2019
@edemaine edemaine mentioned this pull request Feb 21, 2021
1 task
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants