Skip to content

Commit 2362dd4

Browse files
committed
Add fourslash test of jsdoc backtick parsing
1 parent 8454ef1 commit 2362dd4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
///<reference path="fourslash.ts" />
2+
3+
// @noEmit: true
4+
// @allowJs: true
5+
// @checkJs: true
6+
// @strict: true
7+
// @Filename: jsdocParseMatchingBackticks.js
8+
9+
/////**
10+
//// * `@param` initial at-param is OK in title comment
11+
//// * @param {string} x hi there `@param`
12+
//// * @param {string} y hi there `@ * param
13+
//// * this is the margin
14+
//// */
15+
////export function f(x, y) {
16+
//// return x/*x*/ + y/*y*/
17+
////}
18+
////f/*f*/
19+
20+
goTo.marker("f");
21+
verify.quickInfoIs("function f(x: string, y: string): string", "`@param` initial at-param is OK in title comment");
22+
goTo.marker("x");
23+
verify.quickInfoIs("(parameter) x: string", "hi there `@param`");
24+
goTo.marker("y");
25+
verify.quickInfoIs("(parameter) y: string", "hi there `@ * param\nthis is the margin");

0 commit comments

Comments
 (0)