Skip to content

Commit

Permalink
Increase level of type argument depth in possibly type
Browse files Browse the repository at this point in the history
Fixes #840
  • Loading branch information
sheetalkamat committed Nov 5, 2020
1 parent a771bc4 commit d6e677b
Show file tree
Hide file tree
Showing 5 changed files with 262 additions and 73 deletions.
2 changes: 1 addition & 1 deletion TypeScript.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ variables:
functionCallNamedTarget: (({{identifier}})(\s*{{propertyAccessPreIdentifier}}({{propertyIdentifier}}))*)|({{propertyAccessPreIdentifier}}{{propertyIdentifier}})
functionCallTarget: (({{functionCallNamedTarget}})|(?<=[\)]))
possiblyMultilineCallWithTypeArguments: \s*(?:(\?\.\s*)|(\!))?{{possiblyMultilineTypeArgument}}
possiblyType: \s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+
possiblyType: \s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+
typeparamertStartOfArrow: ''
arrowLookup: |-
# sure shot arrow functions even if => is on new line
Expand Down
Loading

0 comments on commit d6e677b

Please sign in to comment.