@@ -1399,6 +1399,8 @@ repository:
1399
1399
match : \*=|(?<!\()/=|%=|\+=|\-=
1400
1400
- name : keyword.operator.assignment.compound.bitwise.ts
1401
1401
match : \&=|\^=|<<=|>>=|>>>=|\|=
1402
+ - name : keyword.operator.bitwise.shift.ts
1403
+ match : <<|>>>|>>
1402
1404
- name : keyword.operator.comparison.ts
1403
1405
match : ===|!==|==|!=
1404
1406
- name : keyword.operator.relational.ts
@@ -1746,27 +1748,25 @@ repository:
1746
1748
match : (?<!\w)@(abstract|access|alias|arg|argument|async|attribute|augments|author|beta|borrows|bubbes|callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright|default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exports?|extends|extension|extension_for|extensionfor|external|file|fileoverview|final|fires|for|function|global|host|ignore|implements|inherit[Dd]oc|inner|instance|interface|kind|lends|license|listens|main|member|memberof|method|mixex|mixins?|module|name|namespace|nocollapse|nosideeffects|override|overview|package|param|preserve|private|prop|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule|summary|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation|version|virtual|writeOnce)\b
1747
1749
- match : |-
1748
1750
(?x)
1749
- (?:(?<=@param)|(?<=@type))
1751
+ (?:(?<=@param)|(?<=@arg)|(?<=@argument)|(?<=@ type))
1750
1752
\s+
1751
1753
({(?:
1752
1754
\* | # {*} any type
1753
1755
\? | # {?} unknown type
1754
-
1755
- (?: # Check for a prefix
1756
+ (?: # Check for a prefix
1756
1757
\? | # {?string} nullable type
1757
- ! | # {!string} non-nullable type
1758
+ ! | # {!string} non-nullable type
1758
1759
\.{3} # {...string} variable number of parameters
1759
1760
)?
1760
-
1761
1761
(?:
1762
1762
\( # Opening bracket of multiple types with parenthesis {(string|number)}
1763
1763
[a-zA-Z_$]+
1764
1764
(?:
1765
1765
(?:
1766
1766
[\w$]*
1767
- (?:\[\])? # {(string[]|number)} type application, an array of strings or a number
1767
+ (?:\[\])? # {(string[]|number)} type application, an array of strings or a number
1768
1768
) |
1769
- <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application
1769
+ \.? <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
1770
1770
)
1771
1771
(?:
1772
1772
[\.|~] # {Foo.bar} namespaced, {string|number} multiple, {Foo~bar} class-specific callback
@@ -1776,7 +1776,7 @@ repository:
1776
1776
[\w$]*
1777
1777
(?:\[\])? # {(string|number[])} type application, a string or an array of numbers
1778
1778
) |
1779
- <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application
1779
+ \.? <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
1780
1780
)
1781
1781
)*
1782
1782
\) |
@@ -1786,35 +1786,35 @@ repository:
1786
1786
[\w$]*
1787
1787
(?:\[\])? # {string[]|number} type application, an array of strings or a number
1788
1788
) |
1789
- <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application
1789
+ \.? <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
1790
1790
)
1791
1791
(?:
1792
- [\.|~] # {Foo.bar} namespaced, {string|number} multiple, {Foo~bar} class-specific callback
1792
+ [\.|~] # {Foo.bar} namespaced, {string|number} multiple, {Foo~bar} class-specific callback
1793
1793
[a-zA-Z_$]+
1794
1794
(?:
1795
1795
[\w$]* |
1796
- <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application
1796
+ \.? <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
1797
1797
)
1798
1798
)*
1799
1799
)
1800
- # Check for suffix
1800
+ # Check for suffix
1801
1801
(?:\[\])? # {string[]} type application, an array of strings
1802
- =? # {string=} optional parameter
1802
+ =? # {string=} optional parameter
1803
1803
)})
1804
1804
\s+
1805
1805
(
1806
- \[ # [foo] optional parameter
1806
+ \[ # [foo] optional parameter
1807
1807
\s*
1808
1808
(?:
1809
1809
[a-zA-Z_$][\w$]*
1810
1810
(?:
1811
1811
(?:\[\])? # Foo[].bar properties within an array
1812
- \. # Foo.Bar namespaced parameter
1812
+ \. # Foo.Bar namespaced parameter
1813
1813
[a-zA-Z_$][\w$]*
1814
1814
)*
1815
1815
(?:
1816
1816
\s*
1817
- = # [foo=bar] Default parameter value
1817
+ = # [foo=bar] Default parameter value
1818
1818
\s*
1819
1819
[\w$\s]*
1820
1820
)?
@@ -1825,12 +1825,13 @@ repository:
1825
1825
[a-zA-Z_$][\w$]*
1826
1826
(?:
1827
1827
(?:\[\])? # Foo[].bar properties within an array
1828
- \. # Foo.Bar namespaced parameter
1828
+ \. # Foo.Bar namespaced parameter
1829
1829
[a-zA-Z_$][\w$]*
1830
1830
)*
1831
1831
)?
1832
1832
)
1833
1833
\s+
1834
+ (?:-\s+)? # optional hyphen before the description
1834
1835
((?:(?!\*\/).)*) # The type description
1835
1836
captures:
1836
1837
'0': { name: other.meta.jsdoc }
@@ -1840,50 +1841,51 @@ repository:
1840
1841
- match : |-
1841
1842
(?x)
1842
1843
({(?:
1843
- \* | # {*} any type
1844
- \? | # {?} unknown type
1844
+ \* | # {*} any type
1845
+ \? | # {?} unknown type
1845
1846
1846
- (?: # Check for a prefix
1847
- \? | # {?string} nullable type
1848
- ! | # {!string} non-nullable type
1849
- \.{3} # {...string} variable number of parameters
1847
+ (?: # Check for a prefix
1848
+ \? | # {?string} nullable type
1849
+ ! | # {!string} non-nullable type
1850
+ \.{3} # {...string} variable number of parameters
1850
1851
)?
1851
1852
1852
1853
(?:
1853
- \( # Opening bracket of multiple types with parenthesis {(string|number)}
1854
+ \( # Opening bracket of multiple types with parenthesis {(string|number)}
1854
1855
[a-zA-Z_$]+
1855
1856
(?:
1856
1857
[\w$]* |
1857
- <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application
1858
+ \.? <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
1858
1859
)
1859
1860
(?:
1860
- [\.|~] # {Foo.bar} namespaced, {string|number} multiple, {Foo~bar} class-specific callback
1861
+ [\.|~] # {Foo.bar} namespaced, {string|number} multiple, {Foo~bar} class-specific callback
1861
1862
[a-zA-Z_$]+
1862
1863
(?:
1863
1864
[\w$]* |
1864
- <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application
1865
+ \.? <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
1865
1866
)
1866
1867
)*
1867
1868
\) |
1868
1869
[a-zA-Z_$]+
1869
1870
(?:
1870
1871
[\w$]* |
1871
- <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application
1872
+ \.? <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
1872
1873
)
1873
1874
(?:
1874
- [\.|~] # {Foo.bar} namespaced, {string|number} multiple, {Foo~bar} class-specific callback
1875
+ [\.|~] # {Foo.bar} namespaced, {string|number} multiple, {Foo~bar} class-specific callback
1875
1876
[a-zA-Z_$]+
1876
1877
(?:
1877
1878
[\w$]* |
1878
- <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application
1879
+ \.? <[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
1879
1880
)
1880
1881
)*
1881
1882
)
1882
- # Check for suffix
1883
+ # Check for suffix
1883
1884
(?:\[\])? # {string[]} type application, an array of strings
1884
- =? # {string=} optional parameter
1885
+ =? # {string=} optional parameter
1885
1886
)})
1886
1887
\s+
1888
+ (?:-\s+)? # optional hyphen before the description
1887
1889
((?:(?!\*\/).)*) # The type description
1888
1890
captures:
1889
1891
'0': { name: other.meta.jsdoc }
0 commit comments