Skip to content

Commit 4605922

Browse files
committed
🐛 Add JSDoc support for a type with a set of type arguments
1 parent a2a8310 commit 4605922

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grammars/javascript.cson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,7 @@
17831783
'match': '''(?x)
17841784
(?:(?<=@param)|(?<=@type))
17851785
\\s+
1786-
({(?:\\*|(?:\\?|\\!|\\.{3})?(?:\\([a-zA-Z_$][\\w$]*(?:[\\.|][a-zA-Z_$][\\w$]*)*\\)|[a-zA-Z_$][\\w$]*(?:[\\.|][a-zA-Z_$][\\w$]*)*)(?:\\[\\])?=?)})
1786+
({(?:\\*|(?:\\?|\\!|\\.{3})?(?:\\([a-zA-Z_$]+(?:[\\w$]*|\\<[\\w$]+\\>)(?:[\\.|][a-zA-Z_$]+(?:[\\w$]*|\\<[\\w$]+\\>))*\\)|[a-zA-Z_$]+(?:[\\w$]*|\\<[\\w$]+\\>)(?:[\\.|][a-zA-Z_$]+(?:[\\w$]*|\\<[\\w$]+\\>))*)(?:\\[\\])?=?)})
17871787
\\s+
17881788
(\\[(?:[a-zA-Z_$]+(?:=[\\w][\\s\\w$]*)?)\\]|(?:[a-zA-Z_$][\\w$]*(?:[\\.|][a-zA-Z_$][\\w$]*)*)?)
17891789
\\s+
@@ -1801,7 +1801,7 @@
18011801
}
18021802
{
18031803
'match': '''(?x)
1804-
({(?:\\*|(?:\\?|\\!|\\.{3})?(?:\\([a-zA-Z_$][\\w$]*(?:[\\.|][a-zA-Z_$][\\w$]*)*\\)|[a-zA-Z_$][\\w$]*(?:[\\.|][a-zA-Z_$][\\w$]*)*)(?:\\[\\])?=?)})
1804+
({(?:\\*|(?:\\?|\\!|\\.{3})?(?:\\([a-zA-Z_$]+(?:[\\w$]*|\\<[\\w$]+\\>)(?:[\\.|][a-zA-Z_$]+(?:[\\w$]*|\\<[\\w$]+\\>))*\\)|[a-zA-Z_$]+(?:[\\w$]*|\\<[\\w$]+\\>)(?:[\\.|][a-zA-Z_$]+(?:[\\w$]*|\\<[\\w$]+\\>))*)(?:\\[\\])?=?)})
18051805
\\s+
18061806
((?:(?!\\*\\/).)*)
18071807
'''

0 commit comments

Comments
 (0)