borela / naomi

Sublime Text enhanced syntax highlighting for JavaScript ES6/ES7/ES2015/ES2016/ES2017+, Babel, FlowType, React JSX, Styled Components, HTML5, SCSS3, PHP 7, phpDoc, PHPUnit, MQL4. Basic: Git config files.
Other
558 stars 18 forks source link

JS typeof with next equal sign broken #109

Closed max-mykhailenko closed 6 years ago

max-mykhailenko commented 6 years ago

Broken

screen shot 2018-03-22 at 3 19 21 pm

Earlier additional braces fix that, but now completely broke

screen shot 2018-03-22 at 3 22 50 pm
borela commented 6 years ago

I tried on my machine but I wasn't able to reproduce it, please post the context where the issue happens.

max-mykhailenko commented 6 years ago
// @flow
export default function getGeneratorMiddleware() {
  return (store: Store<ReduxState, Action>) => (next: Function) => (action: genAction): mixed => {
    if (typeof action.next === 'function') {
      return goOn(store, action);
    }

    return next(action);
  };
}

Sorry for flow

borela commented 6 years ago

Fixed https://github.com/borela/naomi/releases/tag/v3.14.1