Skip to content

feature: how can I PR an extension like tsx, but for another superset language? #307

Closed
@NullVoxPopuli

Description

@NullVoxPopuli

Did you check the tree-sitter docs?

Is your feature request related to a problem? Please describe.

I've noticed that tree-sitter-javascript works fine for this "gjs" syntax, but "gts" falls over with an error:

image
image

My previous PRs to this repo were just around highlighting, but it's clear that I need to probably do some parsing work as well: #277

The code that supports this for javascript / the javascript flavor of glimmer, is not very big:
https://github.com/tree-sitter/tree-sitter-javascript/pull/208/files#diff-919ac210accac9ecc55a76d10a7590e3d85ca3f0e165b52d30f08faee486d0cbR547

does this need to be duplicated in to this repo for gts (Glimmer-flavored TypeScript) support?

Describe the solution you'd like

I can implement whatever, just need some guidance

Describe alternatives you've considered

n/a

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions