Issue #1075 closed
When I create a filter as described in the "Write your own filter" document:
@simplefilter def myfilter(lexer, stream, options): .. lexer.add_filter(myfilter())
TypeError: myfilter() takes 3 positional arguments but 4 were given
I have to work around by adding an extra argument to
@simplefilter def myfilter(self, lexer, stream, options): ..
I am using
$ pygmentize -V Pygments version 2.0.1, (c) 2006-2014 by Georg Brandl.