Comparing version 4.2.1 to 4.3.0
@@ -9,3 +9,24 @@ var DEFAULT_TAGS = ['todo', 'fixme']; | ||
return '\\s*@?(' + tags.join('|') + ')\\s*(?:\\(([^)]*)\\))?\\s*:?\\s*(.*?)\\s*\\s*(?:/(.*)\\s*)?'; | ||
return ( | ||
// Optional space. | ||
'\\s*' + | ||
// Optional `@`. | ||
'@?' + | ||
// One of the keywords such as `TODO` and `FIXME`. | ||
'(' + tags.join('|') + ')' + | ||
// Optional space. | ||
'\\s*' + | ||
// Optional leading reference in parens. | ||
'(?:\\(([^)]*)\\))?' + | ||
// Optional space. | ||
'\\s*' + | ||
// Optional colon `:`. | ||
':?' + | ||
// Optional space. | ||
'\\s*' + | ||
// Comment text. | ||
'(.*?)' + | ||
// Optional trailing reference after a space and a slash, followed by an optional space. | ||
'(?:\\s+/([^\\s]+)\\s*)?' | ||
); | ||
} | ||
@@ -12,0 +33,0 @@ |
{ | ||
"name": "leasot", | ||
"description": "Parse and output TODOs and FIXMEs from comments in your files", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"author": "Gilad Peleg <giladp007@gmail.com> (http://giladpeleg.com)", | ||
@@ -6,0 +6,0 @@ "bin": { |
51537
1031