On Tue, 12 Apr 2016, Thierry wrote:

        TESTS:

            sage: M = ModularForms(1, 12)

i.e. missing a colon: should be TESTS::.

egrep -R '^ +TESTS:$' src/sage -A 2 | egrep 'sage:' | cut -f 1 -d - | sort -u


Be careful that it should be a multiline test, since the following are
allowed:

        TESTS:

        My super comment about modular forms::

                sage: M = ModularForms(1, 12)

I know. That's why I used two-phase grep: First look for "TESTS:" and print two following lines, then from those look for "sage:". That will exclude your example.

I am not sure if grep --perl-regexp really works with s- and m-modifiers. Hence I do not use them.

--
Jori Mäntysalo

Reply via email to