Skip to content

Commit 6d2b601

Browse files
committed
Allow method return types to end with a digit
1 parent a78f05a commit 6d2b601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TypeScript.YAML-tmLanguage

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ repository:
307307
type-annotation:
308308
name: meta.type.annotation.ts
309309
begin: ":"
310-
end: (?=$|[,);\}\]]|//)|(?==[^>])|(?<=[\}>\]\)]|[a-zA-Z_$])\s*(?=\{)
310+
end: (?=$|[,);\}\]]|//)|(?==[^>])|(?<=[\}>\]\)]|[a-zA-Z0-9_$])\s*(?=\{)
311311
patterns:
312312
- include: '#expression-operator'
313313
- include: '#type'

0 commit comments

Comments
 (0)