Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Add syntax highlighting for flow comment types #77

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add syntax highlighting for flow comment types #77

wants to merge 3 commits into from

Commits on Jun 10, 2018

  1. Add syntax highlighting for flow comment types

    - Match comment type include and annotation region.
    - Allow FlowType syntax inside of these regions.
    - Highlight single colon to represent special meaning (kept verbosely in
      type annotation).
    fleischie committed Jun 10, 2018
    Configuration menu
    Copy the full SHA
    a92317c View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2018

  1. Enable function return flow annotations

    This commit adds support for flow annotations to statements as the
    following:
    ```
    function test() /*: $await<number> */ {}
    ```
    fleischie committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    971f68d View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2018

  1. Bypass comment leader on type annotations

    Adding `f:/*::` skips comment continuations on new lines, when in a
    type annotation comment. This needs to be prepended onto the existing
    comments, to remain the behavior of javascript's block comments.
    fleischie committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    3244412 View commit details
    Browse the repository at this point in the history