jsx-lexer icon indicating copy to clipboard operation
jsx-lexer copied to clipboard

Any chance for TSX?

Open pauleveritt opened this issue 7 years ago • 3 comments

I'm enjoying using this in my Sphinx documentation. I do TypeScript with React and many things seem to work, but this for example fails:

class BlogPost extends React.Component<ICounterProps, ICounterState> {
}

...whereas this works:

class BlogPost extends React.Component<{}, {}> {
}

I can make a PR with a failing test if it helps.

pauleveritt avatar May 02 '18 22:05 pauleveritt

Thank you!

Supporting tsx would be nice, but I don't know how easy would it be to implement. Feel free to submit a PR with the failing test, but I'm not sure I'll have much time to dedicate to implementing the feature.

fcurella avatar May 03 '18 15:05 fcurella

@fcurella Thanks for the lexer. Would also love to see TSX support. Any chance of checking out @martinzuern 's Pull Request? https://github.com/fcurella/jsx-lexer/pull/8

Cheers!

csabasulyok avatar Mar 10 '22 10:03 csabasulyok

Sorry I've let this slip through. The PR looks good. The only thing missing is some test cases for TSX. I'll see if @martinzuern is still available.

fcurella avatar Mar 15 '22 16:03 fcurella