This repository was archived by the owner on Dec 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +74
-18
lines changed Expand file tree Collapse file tree 1 file changed +74
-18
lines changed Original file line number Diff line number Diff line change 1934
1934
(?:
1935
1935
function # {function(string, number)} function type
1936
1936
\\ s*
1937
- \\ (
1938
- \\ s*
1939
1937
(?:
1940
- [a-zA-Z_$][\\ w$]*
1941
1938
(?:
1942
- \\ s*,\\ s*
1943
- [a-zA-Z_$][\\ w$]*
1944
- )*
1945
- )?
1946
- \\ s*
1947
- \\ )
1939
+ \\ (
1940
+ \\ s*
1941
+ \\ .{3}[a-zA-Z_$][\\ w$]+ # {function(...string)} variable number of parameters
1942
+ \\ s*
1943
+ \\ )
1944
+ )
1945
+ |
1946
+ (?:
1947
+ \\ (
1948
+ \\ s*
1949
+ (?:
1950
+ (?:
1951
+ \\ ? | # {function(?string)} nullable type
1952
+ ! | # {function(!string)} non-nullable type
1953
+ )?
1954
+ [a-zA-Z_$][\\ w$]+
1955
+ (?:
1956
+ \\ s*,\\ s*
1957
+ (?:
1958
+ (?:
1959
+ (?:
1960
+ \\ ? | # {function(string, ?string)} nullable type
1961
+ ! | # {function(string, !string)} non-nullable type
1962
+ )?
1963
+ [a-zA-Z_$][\\ w$]+
1964
+ )
1965
+ |
1966
+ (?:
1967
+ \\ .{3}[a-zA-Z_$][\\ w$]+ # {function(string, ...string)} variable number of parameters
1968
+ )
1969
+ )
1970
+ )*
1971
+ )*
1972
+ \\ s*
1973
+ \\ )
1974
+ )
1975
+ )
1948
1976
(?: # {function(): string} function return type
1949
1977
\\ s*:\\ s*
1950
1978
[a-zA-Z_$][\\ w$]*
2056
2084
(?:
2057
2085
function # {function(string, number)} function type
2058
2086
\\ s*
2059
- \\ (
2060
- \\ s*
2061
2087
(?:
2062
- [a-zA-Z_$][\\ w$]*
2063
2088
(?:
2064
- \\ s*,\\ s*
2065
- [a-zA-Z_$][\\ w$]*
2066
- )*
2067
- )?
2068
- \\ s*
2069
- \\ )
2089
+ \\ (
2090
+ \\ s*
2091
+ \\ .{3}[a-zA-Z_$][\\ w$]+ # {function(...string)} variable number of parameters
2092
+ \\ s*
2093
+ \\ )
2094
+ )
2095
+ |
2096
+ (?:
2097
+ \\ (
2098
+ \\ s*
2099
+ (?:
2100
+ (?:
2101
+ \\ ? | # {function(?string)} nullable type
2102
+ ! | # {function(!string)} non-nullable type
2103
+ )?
2104
+ [a-zA-Z_$][\\ w$]+
2105
+ (?:
2106
+ \\ s*,\\ s*
2107
+ (?:
2108
+ (?:
2109
+ (?:
2110
+ \\ ? | # {function(string, ?string)} nullable type
2111
+ ! | # {function(string, !string)} non-nullable type
2112
+ )?
2113
+ [a-zA-Z_$][\\ w$]+
2114
+ )
2115
+ |
2116
+ (?:
2117
+ \\ .{3}[a-zA-Z_$][\\ w$]+ # {function(string, ...string)} variable number of parameters
2118
+ )
2119
+ )
2120
+ )*
2121
+ )*
2122
+ \\ s*
2123
+ \\ )
2124
+ )
2125
+ )
2070
2126
(?: # {function(): string} function return type
2071
2127
\\ s*:\\ s*
2072
2128
[a-zA-Z_$][\\ w$]*
You can’t perform that action at this time.
0 commit comments