gandm / language-babel

ES2017, flow, React JSX and GraphQL grammar and transpilation for ATOM
https://atom.io/packages/language-babel
MIT License
476 stars 83 forks source link

arrow functions containing `<` or `<=` in body as non-first argument in function breaks syntax highlighting #376

Closed transcranial closed 7 years ago

transcranial commented 7 years ago

image

Not sure what's going on here. Any ideas?

Edit: here is the same code with the language-javascript grammar, which is fine:

image

gandm commented 7 years ago

I tested and it looks fine. See screenshot below. Are you sure you are using my Grammar (Babel on the status bar)? What version of language-babel are you using? What theme is that? image

gandm commented 7 years ago

@transcranial Sorry I thought you were using comparisons not arrows ( should read the title!) I'll take a look.

transcranial commented 7 years ago

v2.65.0

The theme is oceanic next. I added a second screenshot of the same code with the language-javascript grammar, which is fine, above.

gandm commented 7 years ago

Yeah I made some changes in 2.64.0 that has caused this issue. You can roll back to 2.63.0 until I can fix.

apm install language-babel@2.63.0

gandm commented 7 years ago

Should be fixed in 2.65.1

transcranial commented 7 years ago

@gandm looks good, thanks!