diff options
author | Jean Abou-Samra <jean@abou-samra.fr> | 2022-06-04 09:41:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-04 09:41:53 +0200 |
commit | 6f7c5474982c33d8d5bf34ae1623c61e33962bdf (patch) | |
tree | ff28c044aeffd92f72e2f12b5af4990ac45131b9 /pygments/filters | |
parent | 76a002e3cd52b022834ef1f88746fb828afb88c8 (diff) | |
download | pygments-git-6f7c5474982c33d8d5bf34ae1623c61e33962bdf.tar.gz |
Add FIXME to default code tags (#2150)
It is quite common in my experience, along with 'TODO' and 'XXX'.
Diffstat (limited to 'pygments/filters')
-rw-r--r-- | pygments/filters/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pygments/filters/__init__.py b/pygments/filters/__init__.py index 45dcda0e..4e5c53f1 100644 --- a/pygments/filters/__init__.py +++ b/pygments/filters/__init__.py @@ -69,13 +69,16 @@ class CodeTagFilter(Filter): `codetags` : list of strings A list of strings that are flagged as code tags. The default is to - highlight ``XXX``, ``TODO``, ``BUG`` and ``NOTE``. + highlight ``XXX``, ``TODO``, ``FIXME``, ``BUG`` and ``NOTE``. + + .. versionchanged:: 2.13 + Now recognizes ``FIXME`` by default. """ def __init__(self, **options): Filter.__init__(self, **options) tags = get_list_opt(options, 'codetags', - ['XXX', 'TODO', 'BUG', 'NOTE']) + ['XXX', 'TODO', 'FIXME', 'BUG', 'NOTE']) self.tag_re = re.compile(r'\b(%s)\b' % '|'.join([ re.escape(tag) for tag in tags if tag ])) |