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
Adding simple type annotations such as /* : string */ works terrifically. Everything is highlighted as expected.
However, as soon as I use the "flow-include" comment syntax, such as /* :: ... */ or /* flow-include ... */, the rest of the code in the file is highlighted incorrectly.
Oh, I hadn't even noticed that all of the FlowType examples on the website use semi-colons, but my own code does not. Thanks for that. Adding in the semi-colons fixes this.
If FlowType is supposed to work without semi-colons, then this might still be worth fixing, but otherwise you could consider this user-error. Up to you. :) /shrug
I quite like FlowType, but I prefer to maintain ECMAScript-compatible syntax and instead use FlowType via its comment syntax:
Adding simple type annotations such as
/* : string */
works terrifically. Everything is highlighted as expected.However, as soon as I use the "flow-include" comment syntax, such as
/* :: ... */
or/* flow-include ... */
, the rest of the code in the file is highlighted incorrectly.Here is a reduced sample of code that triggers the issue: https://gist.github.com/jokeyrhyme/4f1a7580deb9f4727bd35f0e7953291a
Here is what it looks like in my Atom:
Any ideas? Is this the appropriate forum to discuss this issue? Or is this an upstream thing?
The text was updated successfully, but these errors were encountered: