From e28d372dd24f32e909bc0d72b890c3f3c781c387 Mon Sep 17 00:00:00 2001 From: uctakeoff Date: Wed, 25 Oct 2023 23:16:13 +0900 Subject: [PATCH] fix: #93 --- package.json | 2 +- src/extension.ts | 2 +- src/internalDefinitions.ts | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b915d91..a461e1f 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/extension.ts b/src/extension.ts index c6a8ee4..046e005 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -409,7 +409,7 @@ const collectLanguageConfigurations = (langs: Map): Promis if (l.configuration) { const confUrl = vscode.Uri.file(path.join(ex.extensionPath, l.configuration)); const langConf = await readJsonFile(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); diff --git a/src/internalDefinitions.ts b/src/internalDefinitions.ts index 2f5377a..0e315eb 100644 --- a/src/internalDefinitions.ts +++ b/src/internalDefinitions.ts @@ -13,4 +13,13 @@ export const internalDefinitions: { [id: string]: Partial } = { blockStrings: [['`', '`']], blockComments: [['{/*', '*/}']], }, + bat: { + lineComments: [ + '::', + 'REM', + '@REM', + 'rem', + '@rem', + ] + } }; \ No newline at end of file