Skip to content

Commit 13cca39

Browse files
committed
style: formatting and adding docblocks
1 parent 3f8784b commit 13cca39

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

src/configuration.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,22 @@ export class Configuration {
5656
*/
5757
private multiLineBlocksMap: Map<string, string[]> = new Map();
5858

59+
/**
60+
* The directory where the auto-generated language definitions are stored.
61+
* @type {string}
62+
*/
5963
private readonly autoGeneratedDir = `${__dirname}/../../auto-generated-language-definitions`;
6064

65+
/**
66+
* The file path for the single-line language definitions.
67+
* @type {string}
68+
*/
6169
private readonly singleLineLangDefinitionFilePath = `${this.autoGeneratedDir}/single-line-languages.json`;
6270

71+
/**
72+
* The file path for the multi-line language definitions.
73+
* @type {string}
74+
*/
6375
private readonly multiLineLangDefinitionFilePath = `${this.autoGeneratedDir}/multi-line-languages.json`;
6476

6577
/***********

src/utils.ts

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,9 @@ export function reconstructRegex(obj: any, key: string) {
8181
*
8282
* {
8383
* "supportedLanguages" => {
84-
* "#": [
85-
* "apacheconf",
86-
* "coffeescript",
87-
* ...
88-
* ],
89-
* "//": [
90-
* "c",
91-
* "cpp",
92-
* ...
93-
* ],
94-
* ";": [
95-
* "clojure",
96-
* ...
97-
* ]
84+
* "#": ["apacheconf", "coffeescript"],
85+
* "//": ["c", "cpp"],
86+
* ";": ["clojure"]
9887
* }
9988
* }
10089
*/

0 commit comments

Comments
 (0)