subtleGradient / language-javascript-jsx

JavaScript with JSX Bundle for Atom
45 stars 6 forks source link

Problem when use static attributes #27

Open BrunoQuaresma opened 8 years ago

BrunoQuaresma commented 8 years ago

When i use static attributes the highlight broken

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

without static image

with: image

ryaninvents commented 8 years ago

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)?

igorokb commented 8 years ago

Facing this issue as well collabshot_2016-8-13_xts1ox

abologna-r7 commented 7 years ago

screen shot 2016-09-28 at 10 17 21 am

Asday commented 7 years ago

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 7 years ago

Any word on this?

abologna-r7 commented 7 years ago

I don't think the project is active anymore... it's been a while since the author has pushed something.

subtleGradient commented 7 years ago

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

razvan-tudosa commented 7 years ago

That's too bad, this package handles better the highlighting for markup. I use monokai and Babel language messes it up somehow.

nbkhope commented 6 years ago

Thank you for your work, @subtleGradient . I am now using language-babel instead, as suggested.