diff --git a/TypeScript.YAML-tmLanguage b/TypeScript.YAML-tmLanguage index 746de037..5b2f85c2 100644 --- a/TypeScript.YAML-tmLanguage +++ b/TypeScript.YAML-tmLanguage @@ -655,6 +655,7 @@ repository: end: (?<=\}) patterns: - include: '#function-name' + - include: '#single-line-comment-consuming-line-ending' - include: '#function-body' function-name: diff --git a/TypeScript.tmLanguage b/TypeScript.tmLanguage index c955f867..4f409cb9 100644 --- a/TypeScript.tmLanguage +++ b/TypeScript.tmLanguage @@ -2078,6 +2078,10 @@ include #function-name + + include + #single-line-comment-consuming-line-ending + include #function-body diff --git a/TypeScriptReact.tmLanguage b/TypeScriptReact.tmLanguage index 7e9c33b2..37dc87c0 100644 --- a/TypeScriptReact.tmLanguage +++ b/TypeScriptReact.tmLanguage @@ -2082,6 +2082,10 @@ include #function-name + + include + #single-line-comment-consuming-line-ending + include #function-body