A tag adds additional information to the comment being processed. For example, if you want the current comment to include the author, include an @author tag.
To create a tag, you need to add to DocumentJS.tags an object with an add and an optional addMore method like:
DocumentJS.tags.mytag = {
add : function(line){ ... },
addMore : function(line, last){ ... }
}