ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/ActiveDoc/Parse.pm
(Generate patch)

Comparing COMP/SCRAM/src/ActiveDoc/Parse.pm (file contents):
Revision 1.1 by williamc, Tue Nov 23 17:20:55 1999 UTC vs.
Revision 1.2 by williamc, Fri Jan 14 15:55:16 2000 UTC

# Line 19 | Line 19
19   #                                  supplied as a second argument
20   # line()        : return the current linenumber in the file
21   # tagstartline()        : return the linenumber of the last tag opening
22 + # includeparse(Parse) : include the settings from another parse object
23 + # tags()                : return list of defined tags
24  
25  
26   package ActiveDoc::Parse;
# Line 80 | Line 82 | sub tagstartline {
82          }
83          return undef;
84   }
85 +
86 + sub includeparse {
87 +        my $self=shift;
88 +        my $obj=shift;
89 +
90 +        my $tag;
91 +        # copy the tags from  the remote parse object
92 +        foreach $tag ( $obj->tags() ) {
93 +          $self->addtag($tag,$obj->{tags}->tagsettings($tag));
94 +        }
95 +        # now the group settings
96 + }
97 +
98   sub addtag {
99          my $self=shift;
100          $self->{tags}->addtag(@_);
# Line 128 | Line 143 | sub Ignore_Start {
143          $self->{gc}->opencontext("ignore");
144   }
145  
146 + sub tags {
147 +         my $self=shift;
148 +         return $self->{tags}->tags();
149 + }
150   sub Ignore_End {
151          my $self=shift;
152          $self->{gc}->closecontext("ignore");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines