The symbol '^' in the regex causes the matching of tags at the start of a line.
Details of implications
The regex of Todo Tree has the symbol “^” that asserts position at the start of a line. The problem occurs because there are many general matches and causes many false matching. See some examples below.
Example 1: C/C++ structs and defines.
In the Linux Kernel code (https://kernel.org), there are structs such as BUG_ON and BUG_ENTRY in many parts of the code.
Reason
The symbol '^' in the regex causes the matching of tags at the start of a line.
Details of implications
The regex of Todo Tree has the symbol “^” that asserts position at the start of a line. The problem occurs because there are many general matches and causes many false matching. See some examples below.
Example 1: C/C++ structs and defines.
In the Linux Kernel code (https://kernel.org), there are structs such as
BUG_ON
andBUG_ENTRY
in many parts of the code.So, the extension will match all structs. This behavior should not be expected.
Example 2: Text or LaTeX files.
If you write a text in LaTeX starting with:
The extension will match part of the text. This behavior should not be expected.
Example 3: Functions in shell scripts.
The extension will match the function
BUG_HANDLER
. This behavior should not be expected.