Skip to content

Commit

Permalink
Fixed a couple of minor Flow regressions relative to the core syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
thom committed May 29, 2018
1 parent 6a77920 commit e1388b3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions extensions/flow_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,13 @@ contexts: !merge
- method-declaration-expect-prefix
- function-declaration-expect-async

export-extended: !prepend
- include: flow-type-alias
- match: (?:const|let|var){{identifier_break}}
scope: storage.type.js
set:
- variable-binding-list-top
- variable-binding-top

parenthesized-expression:
- match: \(
scope: punctuation.section.group.js
scope: punctuation.section.group.begin.js
set:
- meta_scope: meta.group.js
- match: \)
scope: punctuation.section.group.js
scope: punctuation.section.group.end.js
pop: true
- match: (?=:)
push: flow-type-annotation
Expand Down

0 comments on commit e1388b3

Please sign in to comment.