Comparing version 10.6.0 to 10.7.0
@@ -17,2 +17,3 @@ "use strict"; | ||
'.css': { parserName: 'defaultParser' }, | ||
'.ctp': { parserName: 'defaultParser', includedFiles: ['.html', '.js', '.css'] }, | ||
'.ejs': { parserName: 'ejsParser' }, | ||
@@ -23,2 +24,3 @@ '.erb': { parserName: 'ejsParser' }, | ||
'.es6': { parserName: 'defaultParser' }, | ||
'.fs': { parserName: 'fsharpParser' }, | ||
'.go': { parserName: 'defaultParser' }, | ||
@@ -51,3 +53,2 @@ '.h': { parserName: 'defaultParser' }, | ||
'.php': { parserName: 'defaultParser', includedFiles: ['.html', '.js', '.css'] }, | ||
'.ctp': { parserName: 'defaultParser', includedFiles: ['.html', '.js', '.css'] }, | ||
'.pl': { parserName: 'coffeeParser' }, | ||
@@ -54,0 +55,0 @@ '.pm': { parserName: 'coffeeParser' }, |
@@ -7,3 +7,3 @@ "use strict"; | ||
const regex = utils_1.getRegex(customTags); | ||
const commentsRegex = new RegExp('^\\s*#' + regex + '$', 'mig'); | ||
const commentsRegex = new RegExp(`^\\s*#${regex}$`, 'mig'); | ||
return (contents, file) => { | ||
@@ -10,0 +10,0 @@ return comments_1.extractSingleLineComments(contents, file, commentsRegex); |
@@ -8,4 +8,4 @@ "use strict"; | ||
const regex = utils_1.getRegex(customTags); | ||
const lineCommentRegex = new RegExp('^\\s*\\/\\/' + regex + '$', 'ig'); | ||
const innerBlockRegex = new RegExp('^\\s*(?:\\/\\*)?\\**!?' + regex + '(?:\\**\\/)?$', 'ig'); | ||
const lineCommentRegex = new RegExp(`^\\s*\\/\\/${regex}$`, 'ig'); | ||
const innerBlockRegex = new RegExp(`^\\s*(?:\\/\\*)?\\**!?${regex}(?:\\**\\/)?$`, 'ig'); | ||
return (contents, file) => { | ||
@@ -12,0 +12,0 @@ const singleLineComments = comments_1.extractSingleLineComments(contents, file, lineCommentRegex); |
@@ -7,4 +7,4 @@ "use strict"; | ||
const regex = utils_1.getRegex(customTags); | ||
const bangComment = new RegExp('<%#' + regex + '%>', 'mig'); | ||
const htmlComment = new RegExp('<!--' + regex + '-->', 'mig'); | ||
const bangComment = new RegExp(`<%#${regex}%>`, 'mig'); | ||
const htmlComment = new RegExp(`<!--${regex}-->`, 'mig'); | ||
return function parse(contents, file) { | ||
@@ -11,0 +11,0 @@ const comments = []; |
@@ -7,6 +7,6 @@ "use strict"; | ||
const regex = utils_1.getRegex(customTags); | ||
const hamlRubyComment = new RegExp('^\\s*-#' + regex + '$', 'mig'); | ||
const hamlHtmlComment = new RegExp('^\\s*/' + regex + '$', 'mig'); | ||
const erbComment = new RegExp('<%#' + regex + '%>', 'mig'); | ||
const htmlComment = new RegExp('<!--' + regex + '-->', 'mig'); | ||
const hamlRubyComment = new RegExp(`^\\s*-#${regex}$`, 'mig'); | ||
const hamlHtmlComment = new RegExp(`^\\s*/${regex}$`, 'mig'); | ||
const erbComment = new RegExp(`<%#${regex}%>`, 'mig'); | ||
const htmlComment = new RegExp(`<!--${regex}-->`, 'mig'); | ||
return function parse(contents, file) { | ||
@@ -13,0 +13,0 @@ const comments = []; |
@@ -9,3 +9,3 @@ "use strict"; | ||
const regex = utils_1.getRegex(customTags); | ||
const commentsRegex = new RegExp('^\\s*%' + regex + '$', 'mig'); | ||
const commentsRegex = new RegExp(`^\\s*%${regex}$`, 'mig'); | ||
return (contents, file) => { | ||
@@ -12,0 +12,0 @@ const comments = []; |
@@ -7,4 +7,4 @@ "use strict"; | ||
const regex = utils_1.getRegex(customTags); | ||
const commentsRegex = new RegExp('^\\s*//' + regex + '$', 'mig'); | ||
const multiLineRegex = new RegExp('^\\s*{' + regex + '}$', 'mig'); | ||
const commentsRegex = new RegExp(`^\\s*//${regex}$`, 'mig'); | ||
const multiLineRegex = new RegExp(`^\\s*{${regex}}$`, 'mig'); | ||
return (contents, file) => { | ||
@@ -11,0 +11,0 @@ let comments = []; |
@@ -7,4 +7,4 @@ "use strict"; | ||
const regex = utils_1.getRegex(customTags); | ||
const commentsRegex = new RegExp('^\\s*#' + regex + '$', 'mig'); | ||
const multiLineRegex = new RegExp('^\\s*"""' + regex + '"""$', 'mig'); | ||
const commentsRegex = new RegExp(`^\\s*#${regex}$`, 'mig'); | ||
const multiLineRegex = new RegExp(`^\\s*"""${regex}"""$`, 'mig'); | ||
return (contents, file) => { | ||
@@ -11,0 +11,0 @@ const comments = []; |
@@ -71,3 +71,4 @@ "use strict"; | ||
eol_1.split(baseMatch).forEach((line, index) => { | ||
let subMatch = innerBlockRegex.exec(line); | ||
const stripped = line.trim(); | ||
let subMatch = innerBlockRegex.exec(stripped); | ||
while (subMatch) { | ||
@@ -74,0 +75,0 @@ const adjustedLine = index_1.getLineFromPos(contents, match.index) + index; |
{ | ||
"name": "leasot", | ||
"description": "Parse and output TODOs and FIXMEs from comments in your files", | ||
"version": "10.6.0", | ||
"version": "10.7.0", | ||
"author": "Gilad Peleg <gilad@giladpeleg.com> (https://www.giladpeleg.com)", | ||
@@ -6,0 +6,0 @@ "bin": { |
68473
73
1549