Skip to content

Commit

Permalink
Arrow lookup is ok if it is not followed by "]" because then it has t…
Browse files Browse the repository at this point in the history
…o be function call

Fixes #402
  • Loading branch information
sheetalkamat committed Jan 9, 2017
1 parent 6c5694a commit 9b0d80d
Show file tree
Hide file tree
Showing 5 changed files with 620 additions and 3 deletions.
2 changes: 1 addition & 1 deletion TypeScript.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,7 @@ repository:
(?:
(?<!\.|\$)(\basync)(?=\s*[<(])
) |
(\s*
((?<!\])\s*
(?=
# sure shot arrow functions even if => is on new line
(
Expand Down
2 changes: 1 addition & 1 deletion TypeScript.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -4401,7 +4401,7 @@
<key>begin</key>
<string>(?x) (?:
(?&lt;!\.|\$)(\basync)(?=\s*[&lt;(])
) | (\s*
) | ((?&lt;!\])\s*
(?=
# sure shot arrow functions even if =&gt; is on new line
(
Expand Down
2 changes: 1 addition & 1 deletion TypeScriptReact.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -4383,7 +4383,7 @@
<key>begin</key>
<string>(?x) (?:
(?&lt;!\.|\$)(\basync)(?=\s*[&lt;(])
) | (\s*
) | ((?&lt;!\])\s*
(?=
# sure shot arrow functions even if =&gt; is on new line
(
Expand Down
Loading

0 comments on commit 9b0d80d

Please sign in to comment.