Thom1729 / Sublime-JS-Custom

Customizable JavaScript syntax highlighting for Sublime Text.
MIT License
137 stars 9 forks source link

Missing scopes when importing/exporting Flow types #69

Closed nwoltman closed 5 years ago

nwoltman commented 5 years ago

Flow supports directly importing/exporting types, however, the correct scope isn't being added to the type keyword in imports/exports and directly exported types are missing Flow scopes altogether.

/**
 * @flow
 */

// `type` is missing "storage.type.js" scope
import {type UserID} from 'AppTypes';

type User = {|
  id: UserID,
  name: string,
|};

// `type` is missing "storage.type.js" scope
export type {User};

// Missing all Flow-related scopes
export type Friend = {|
  id: UserID,
  name: string,
|};

Result: Flow-sublime

nwoltman commented 5 years ago

Thanks for the quick fix @Thom1729! 😄

Thom1729 commented 5 years ago

Thanks for the report!