Icehunter / language-jsx

forked from yosuke-furukawa/language-jsx
MIT License
4 stars 2 forks source link

Wrong formatting when line only contains /> #6

Open robeeeert opened 8 years ago

robeeeert commented 8 years ago

Hi, I encountered a bug where the rest of a JSX file is rendered completely blue beginning from a line containing only />. Example:

<MyComponent
  prop1="one"
  prop2="two"
/>

<ImRenderedBlue
  ohno="what's going on?"
  iDontKnow="I'm blue dabbedeedabbedie"
/>

Try to copy and paste this to reproduce in Atom v1.0.11 with plugin version v0.1.1

robeeeert commented 7 years ago

This is still an issue. It seems like everything starting from the / is interpreted as a regular expression until a new / is encountered.