Skip to content

Commit 3d901dc

Browse files
committed
version 1.3.0
- added support for multiline comments starting with `/**` - added support for variable declarations with `let` and `const` - added support for doxygen keywords starting with `\` (like `\file`)
1 parent 2612d68 commit 3d901dc

File tree

10 files changed

+6435
-32
lines changed

10 files changed

+6435
-32
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11

2+
## 1.3.0
3+
4+
- added support for multiline comment starting with `/**`
5+
- added support for variable declarations with `let` and `const`
6+
- added support for keywords starting with `\` (like `\file`)
7+
28
## 1.2.0
39

410
- using babel for package building

__tests__/seeds/commentSeeds.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,49 @@
11
const comment_input = [
22
`/*!
33
* @file FileName.js
4+
*/`,
5+
`/**
6+
* @file FileName.js
7+
*/`,
8+
`/*!
9+
* \\file FileName.js
410
*/`,
511
`/*!
612
* @file FileName.js
713
* @brief file description
14+
*/`,
15+
`/**
16+
* @file FileName.js
17+
* @brief file description
18+
*/`,
19+
`/*!
20+
* \\file FileName.js
21+
* \\brief file description
822
*/`,
923
];
1024

1125
const comment_output = [
1226
`/*!
1327
* @file FileName.js
1428
*/
29+
`,
30+
`/*!
31+
* @file FileName.js
32+
*/
33+
`,
34+
`/*!
35+
* @file FileName.js
36+
*/
37+
`,
38+
`/*!
39+
* @brief file description
40+
* @file FileName.js
41+
*/
42+
`,
43+
`/*!
44+
* @brief file description
45+
* @file FileName.js
46+
*/
1547
`,
1648
`/*!
1749
* @brief file description

__tests__/seeds/variableSeeds.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
const variables_input = [
22
`var x;`,
3+
`let x;`,
4+
`const x;`,
35
`//! variable description
46
var x;
7+
`,
8+
`//! variable description
9+
let x;
10+
`,
11+
`//! variable description
12+
const x;
513
`,
614
`//! type:String variable description
715
var x;
@@ -10,6 +18,16 @@ var x;
1018

1119
const variables_output = [
1220
`var x;
21+
`,
22+
`var x;
23+
`,
24+
`var x;
25+
`,
26+
`//! variable description
27+
var x;
28+
`,
29+
`//! variable description
30+
var x;
1331
`,
1432
`//! variable description
1533
var x;

0 commit comments

Comments
 (0)