Skip to content

Commit

Permalink
Fallback to matching strings before parameters to ensure when method …
Browse files Browse the repository at this point in the history
…call gets detected as method definition

Fixes #668
  • Loading branch information
sheetalkamat committed Sep 18, 2018
1 parent 61ec713 commit c75d110
Show file tree
Hide file tree
Showing 5 changed files with 215 additions and 0 deletions.
1 change: 1 addition & 0 deletions TypeScript.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,7 @@ repository:
function-parameters-body:
patterns:
- include: '#comment'
- include: '#string'
- include: '#decorator'
- include: '#destructuring-parameter'
- include: '#parameter-name'
Expand Down
4 changes: 4 additions & 0 deletions TypeScript.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -2690,6 +2690,10 @@
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#string</string>
</dict>
<dict>
<key>include</key>
<string>#decorator</string>
Expand Down
4 changes: 4 additions & 0 deletions TypeScriptReact.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -2694,6 +2694,10 @@
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#string</string>
</dict>
<dict>
<key>include</key>
<string>#decorator</string>
Expand Down
Loading

0 comments on commit c75d110

Please sign in to comment.