From 67dfcb39ab10a57d788957e803152d6dbacdfc45 Mon Sep 17 00:00:00 2001 From: alinex Date: Sun, 17 Jul 2016 19:10:54 +0200 Subject: [PATCH 1/2] Add handlebars code support. --- src/languages.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/languages.js b/src/languages.js index 5b831b2..ac581e9 100644 --- a/src/languages.js +++ b/src/languages.js @@ -120,6 +120,11 @@ var langs = module.exports = { names: [ '.htaccess', 'apache.conf', 'apache2.conf' ], comment: '#' }, + handlebars: { + extensions: [ 'hbs', 'handlebars' ], + //comment: only supports multi line comments + multiLine: [ /\{\{!(--)?/, /(--)?\}\}/ ], jsDoc: true + }, jade: { extensions: [ 'jade' ], comment: '//-?', multiLine: [ /\/\*\*?/, /\*\// ], jsDoc: true From 25b6fe506645b4faad59f6254661d689baf57737 Mon Sep 17 00:00:00 2001 From: alinex Date: Sun, 17 Jul 2016 19:12:01 +0200 Subject: [PATCH 2/2] No jsdoc in handlebars. --- src/languages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/languages.js b/src/languages.js index ac581e9..cbf4f55 100644 --- a/src/languages.js +++ b/src/languages.js @@ -123,7 +123,7 @@ var langs = module.exports = { handlebars: { extensions: [ 'hbs', 'handlebars' ], //comment: only supports multi line comments - multiLine: [ /\{\{!(--)?/, /(--)?\}\}/ ], jsDoc: true + multiLine: [ /\{\{!(--)?/, /(--)?\}\}/ ] }, jade: { extensions: [ 'jade' ],