Skip to content

Commit

Permalink
fix: #93
Browse files Browse the repository at this point in the history
  • Loading branch information
uctakeoff committed Oct 25, 2023
1 parent 20166f3 commit e28d372
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-counter",
"displayName": "VS Code Counter",
"description": "Count lines of code in many programming languages.",
"version": "3.2.0",
"version": "3.2.2",
"publisher": "uctakeoff",
"author": {
"name": "Ushiyama Kentaro"
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ const collectLanguageConfigurations = (langs: Map<string, LanguageConf>): Promis
if (l.configuration) {
const confUrl = vscode.Uri.file(path.join(ex.extensionPath, l.configuration));
const langConf = await readJsonFile<vscode.LanguageConfiguration>(confUrl, undefined, {});
// log(`${confUrl} :${l.id}`);
// log(`"${confUrl.fsPath}" :${l.id}\n aliases:${l.aliases}\n extensions:${l.extensions}\n filenames:${l.filenames}`, l);
if (langConf.comments) {
if (langConf.comments.lineComment) {
langExt.lineComments.push(langConf.comments.lineComment);
Expand Down
9 changes: 9 additions & 0 deletions src/internalDefinitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,13 @@ export const internalDefinitions: { [id: string]: Partial<LanguageConf> } = {
blockStrings: [['`', '`']],
blockComments: [['{/*', '*/}']],
},
bat: {
lineComments: [
'::',
'REM',
'@REM',
'rem',
'@rem',
]
}
};

0 comments on commit e28d372

Please sign in to comment.