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

Add File and FormData API classes #375

Closed ulrik59 closed 7 years ago

ulrik59 commented 7 years ago

language-babel does not color a lot of standard API (https://developer.mozilla.org/en-US/docs/Web/API). I just add File and FormData API as I'm actually using them.

gandm commented 7 years ago

Hi, those api's shouldn't be defined there. That part of the grammar is only for builtin JavaScript objects and only when expressing a flow type.

gandm commented 7 years ago

@ulrik59 i think you want a new rule much like language-javascript provides here https://github.com/atom/language-javascript/blob/master/grammars/javascript.cson#L1004-L1073