Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ You can also include and exclude folders from the tree using the context menu. T
When the extension was first written, very basic markdown support was added simply by adding a pattern to the default regex to match "`- [ ]`". A better way to handle markdown TODOs is to add "`(-|\d+.)`" to the list of "comments" in the first part of the regex and then adding "`[ ]`" and "`[x]`" to the list of tags in `settings.json`, e.g. :

```json
"todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^\\s*(-|\\d+.))\\s*($TAGS)"
"todo-tree.regex.regex": "(//|#|<!--|;|%|/\\*|^|^[ \\t]*(-|\\d+.))\\s*($TAGS)"
"todo-tree.general.tags": [
"BUG",
"HACK",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@
"type": "array"
},
"todo-tree.regex.regex": {
"default": "(//|#|<!--|;|/\\*|^|^[ \\t]*(-|\\d+.))\\s*($TAGS)",
"default": "(//|#|<!--|;|%|/\\*|^|^[ \\t]*(-|\\d+.))\\s*($TAGS)",
"markdownDescription": "%todo-tree.configuration.regex.regex.markdownDescription%",
"type": "string",
"minLength": 1
Expand Down
2 changes: 1 addition & 1 deletion src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ function activate( context )
ignoreMarkdownUpdate = true;
addTag( '[ ]' );
addTag( '[x]' );
c.update( 'regex.regex', '(//|#|<!--|;|/\\*|^|^[ \\t]*(-|\\d+.))\\s*($TAGS)', true );
c.update( 'regex.regex', '(//|#|<!--|;|%|/\\*|^|^[ \\t]*(-|\\d+.))\\s*($TAGS)', true );
}
else if( button === MORE_INFO_BUTTON )
{
Expand Down