Skip to content

Commit

Permalink
Merge pull request #37 from Thom1729/flow-arrow-improvements
Browse files Browse the repository at this point in the history
Handle arrow function return type declarations.
  • Loading branch information
Thomas Smith authored May 29, 2018
2 parents 7d666e2 + bd40db1 commit c33ee02
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions extensions/flow_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
---
!merge
variables: !merge
arrow_func_lookahead: |-
(?x)(?:
\s*(async\s*)?
(?:
{{identifier}}
|\( (?: [^()]|\([^()]*\) )* \)
)
(?:
\s*:
\s*{{identifier}}
)?
\s*=>
)
class_element_name: |-
(?x)\+?(?:
{{property_name}}
Expand Down

0 comments on commit c33ee02

Please sign in to comment.