Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#11 closed defect (fixed)

specdomain: regexp problem with def macro recognition in docstrings

Reported by: jemian Owned by: jemian
Priority: major Milestone:
Keywords: specdomain Cc:

Description

reported by Christian Schlepuetz

I found the cause of the processing error. It must have something to do
the the regex you use to identify definitions. Line 65 in the header
docstring started with the word "defined". Somehow that triggered the
regexp, which collected everything up to the next "(", which happens to be
on line 69 "(2*AUTO_FILTER_FACTOR)".

I temporarily fixed the problem by moving the word "defined" to the end of
the previous line, but this fluke could potentially arise again. Is there
a way of not searching for any of the function declarations (def, cdef,
reef, global, Š) inside a doctoring? Otherwise, you may have to improve
the regex.

Change History (3)

comment:1 Changed 10 years ago by jemian

(In [1016]) refs #11, bug noted on list

comment:2 Changed 10 years ago by jemian

  • Resolution set to fixed
  • Status changed from new to closed

(In [1017]) fixes #11, always require whitespace after "def" or "rdef" when not a macro function

comment:3 Changed 10 years ago by jemian

(In [1019]) refs #11, fold back in additional changes from author

Note: See TracTickets for help on using tickets.