You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The core JavaScript syntax does not support Flow type annotations. The core syntax only highlights standard JavaScript, including many experimental standards-track features but excluding nonstandard extensions such as Flow, JSX, and TypeScript.
By supporting Flow annotations, the core syntax would be making an arbitrary choice that could conflict with future standard JavaScript features or with other nonstandard extensions that users could want. In addition, the core syntax would be on the hook to maintain whatever extensions it supported as those extensions evolve.
As the author of JS Custom, it's probably not surprising that I recommend that package for highlighting Flow and JSX. It's built directly on top of the core JavaScript syntax but offers configurable support for various nonstandard extensions. If the core syntax did implement a specific nonstandard type system, that might actually interfere with JS Custom's ability to support alternative systems.
Because the problem you describe is outside the scope of the core JavaScript syntax, this issue should probably be closed. If you have any issues with JS Custom's Flow typing support, please don't hesitate to open an issue.
Using Sublime 3.1.
The
this
at the end ofstatic fromObject (obj, hash): this
breaks it.EDIT: note that JSCustom fixes this
The text was updated successfully, but these errors were encountered: