Any chance for TSX?
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.
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 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!
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.