Variable: magit-todos-keyword-suffix
magit-todos-keyword-suffix is a customizable variable defined in
magit-todos.el.
Value
"\\(?:[([][^])]+[])]\\)?:"
Documentation
Regular expression matching suffixes after keywords.
e.g. to match a keyword like "TODO(user):", use "([^)]+):".
If the suffix should be optional, the entire regexp should be made explicitly optional. However, it is not necessary to account for optional whitespace after the suffix, as this is done automatically.
Note: the suffix applies only to non-Org files.
This variable was added, or its default value changed, in magit-todos version 1.2.
Source Code
;; Defined in /nix/store/xy37aj9089qvbs5clw0qszpi3hrh3mxx-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-todos-20250928.1611/magit-todos.el
(defcustom magit-todos-keyword-suffix (rx (optional (or "(" "[") (1+ (not (any ")" "]"))) (or ")" "]")) ":")
"Regular expression matching suffixes after keywords.
e.g. to match a keyword like \"TODO(user):\", use \"([^)]+):\".
If the suffix should be optional, the entire regexp should be
made explicitly optional. However, it is not necessary to
account for optional whitespace after the suffix, as this is done
automatically.
Note: the suffix applies only to non-Org files."
:type `(choice (const :tag "Optional suffix in parens, then required colon (matching e.g. \"TODO:\" or \"TODO(foo):\")"
,(rx (optional "(" (1+ (not (any ")"))) ")") ":"))
(const :tag "Optional suffix in parens or brackets, then required colon (matching e.g. \"TODO:\" or \"TODO(foo):\" or \"TODO[foo]:\")"
,(rx (optional (or "(" "[") (1+ (not (any ")" "]"))) (or ")" "]")) ":"))
(const :tag "Required colon (matching e.g. \"TODO:\"" ":")
(string :tag "Custom regexp"))
:package-version '(magit-todos . "1.2"))