language-javascript-jsx icon indicating copy to clipboard operation
language-javascript-jsx copied to clipboard

Problem when use static attributes

Open BrunoQuaresma opened this issue 8 years ago • 9 comments

When i use static attributes the highlight broken

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

without static image

with: image

BrunoQuaresma avatar Jun 15 '16 20:06 BrunoQuaresma

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

ryaninvents avatar Aug 24 '16 19:08 ryaninvents

Facing this issue as well collabshot_2016-8-13_xts1ox

igorokb avatar Sep 13 '16 08:09 igorokb

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

abologna-r7 avatar Sep 28 '16 15:09 abologna-r7

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 avatar Dec 21 '16 13:12 Asday

Any word on this?

Asday avatar Jan 25 '17 16:01 Asday

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

abologna-r7 avatar Jan 25 '17 16:01 abologna-r7

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

subtleGradient avatar Jan 25 '17 22:01 subtleGradient

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

razvan-tudosa avatar Apr 04 '17 08:04 razvan-tudosa

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

nbkhope avatar Apr 30 '18 20:04 nbkhope