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