Generalize parsing of several @tags in DocParser.
Remove bunch of duplication by parsing similar tags with a more generic functions. Also avoid repeating regexes by not testing for the exact tagname any more after the first initial check. The new helper method parse_tag_as() replaces in lots of places two lines of code with just one.
Loading
Please register or sign in to comment