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

Add support for JSX tags to the CoffeeScript grammar - #172

Merged
smashwilson merged 3 commits into
atom:masterfrom
cuberoot:add-jsx
Jan 25, 2019
Merged

smashwilson merged 3 commits into
atom:masterfrom
cuberoot:add-jsx

Conversation

@cuberoot

@cuberoot cuberoot commented Oct 10, 2018 •

Copy link
Copy Markdown

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 done
@rsese

rsese commented Oct 22, 2018

Copy link
Copy Markdown

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

@lee-dohm

Copy link
Copy Markdown
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
Copy Markdown
Author

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

@smashwilson smashwilson left a comment

Copy link
Copy Markdown
Contributor

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 done
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.

6 participants