subtleGradient/language-javascript-jsx

Problem when use static attributes

BrunoQuaresma opened this issue · 9 comments

When i use static attributes the highlight broken

static propTypes = {
    children: PropTypes.node.isRequired,
    type: PropTypes.string
  }

without static
image

with:
image

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
collabshot_2016-8-13_xts1ox

Asday commented

screen shot 2016-12-21 at 13 45 30

screen shot 2016-12-21 at 13 34 49

Looks like the first static variable in a class is being interpreted as a function somehow? Very distracting, in any case.

Asday commented

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.