Skip to content

typeof Flow return type breaks syntax highlighting #1159

@awilliams-atx

Description

@awilliams-atx

Here's the snippet that produces this syntax highlighting break:

class FooClass {
  fooMethod(): typeof FooEnum {
    return {};
  }
}

A screenshot of the syntax highlighting breaking:

screen shot 2019-02-06 at 1 18 27 pm

I have ensured that my vim-javascript and vim-jsx are up to date.

I have disabled all other plugins besides vim-javascript and vim-jsx and the problem does persist.

My workaround:

class FooClass {
  fooMethod(): {|...typeof FooEnum|} {
    return {};
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions