Skip to content

Commit d6e677b

Browse files
committed
Increase level of type argument depth in possibly type
Fixes #840
1 parent a771bc4 commit d6e677b

File tree

5 files changed

+262
-73
lines changed

5 files changed

+262
-73
lines changed

TypeScript.YAML-tmLanguage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ variables:
7575
functionCallNamedTarget: (({{identifier}})(\s*{{propertyAccessPreIdentifier}}({{propertyIdentifier}}))*)|({{propertyAccessPreIdentifier}}{{propertyIdentifier}})
7676
functionCallTarget: (({{functionCallNamedTarget}})|(?<=[\)]))
7777
possiblyMultilineCallWithTypeArguments: \s*(?:(\?\.\s*)|(\!))?{{possiblyMultilineTypeArgument}}
78-
possiblyType: \s*([^<>\(\)\{\}]|\<([^<>]|\<[^<>]+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+
78+
possiblyType: \s*([^<>\(\)\{\}]|\<([^<>]|\<([^<>]|\<[^<>]+\>)+\>)+\>|\([^\(\)]+\)|\{[^\{\}]+\})+
7979
typeparamertStartOfArrow: ''
8080
arrowLookup: |-
8181
# sure shot arrow functions even if => is on new line

0 commit comments

Comments
 (0)