language-javascript-jsx
language-javascript-jsx copied to clipboard
Problem when use static attributes
When i use static attributes the highlight broken
static propTypes = {
children: PropTypes.node.isRequired,
type: PropTypes.string
}
without static
with:
I had similar behavior with a different JSX highlighter; are you sure you're using this one (should show "JavaScript by SubtleGradient" in status line)?
Facing this issue as well
Looks like the first static variable in a class is being interpreted as a function somehow? Very distracting, in any case.
Any word on this?
I don't think the project is active anymore... it's been a while since the author has pushed something.
Sorry, I've been dealing with some sort high priority stuff and haven't maintained this properly.
I think the Babel language package is being maintained more actively. Try it and see if it works better for these files
That's too bad, this package handles better the highlighting for markup. I use monokai and Babel language messes it up somehow.
Thank you for your work, @subtleGradient . I am now using language-babel
instead, as suggested.