vscode-todo-list
vscode-todo-list copied to clipboard
How to change RegExp to include python TODOS?
So, looking at the default RegExp: (?://|/*|<!--)[ ]?([A-Z]+)(?: |:|(([A-Za-z/\d ]+)):)[ ]?(.*?)[ ]?(?:-->|*/|$) I have absolutely no idea how to do this. Python comments start with a #
I just changed the regex to include python comment hashtags by adding #| to the regex.
My total regex looks like:
(?:\#|\/\/|\/\*|\<\!--)[ ]?([A-Z]+)(?: |\:|\(([A-Za-z\/\d ]+)\)\:)[ ]?(.*?)[ ]?(?:--\>|\*\/|$)
So far, this works fine.