Skip to content

Commit 85a2efd

Browse files
committed
[JS] Enhance function call precision
1 parent d6657c7 commit 85a2efd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

syntaxes/fjsx15/function-call.sublime-syntax

+4-5
Original file line numberDiff line numberDiff line change
@@ -39,37 +39,36 @@ variables:
3939
4040
contexts:
4141
main:
42-
# Simple function call.
42+
# Generic function call.
4343
- match: |
4444
(?xi)
4545
(?=
4646
(?:\#\s*)?
4747
{{commonIdentifier}}
48-
(?:\s*{{comment}})?
48+
\s*{{genericArguments}}
4949
\s*(\?\.)?
5050
\s*\(
5151
)
5252
set: [
5353
meta,
5454
arguments,
55+
generic-arguments,
5556
identifier,
5657
optional-modifier
5758
]
58-
# Generic function call.
59+
# Simple function call.
5960
- match: |
6061
(?xi)
6162
(?=
6263
(?:\#\s*)?
6364
{{commonIdentifier}}
6465
(?:\s*{{comment}})?
65-
\s*{{genericArguments}}
6666
\s*(\?\.)?
6767
\s*\(
6868
)
6969
set: [
7070
meta,
7171
arguments,
72-
generic-arguments,
7372
identifier,
7473
optional-modifier
7574
]

0 commit comments

Comments
 (0)