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

flow: interface function returning generator breaks highlight #185

Closed eroux closed 5 years ago

eroux commented 5 years ago

When a function in an object returns a Generator, the syntax is broken:

flowbug

//@flow

export interface AnnotationCollection {
   extracontexts: Array<string>,
   id: string,
   label: string,
   total: Number,
   getAnnotation: () => Generator<string,boolean,void>,
   getAnnotationForRange: (start:number, end:number) => Generator<string,boolean,void>
};

interface Annotation {

};
eroux commented 5 years ago

sorry, my bad, flow was just not complaining about my weird syntax