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

Comparing COMP/SCRAM/src/ActiveDoc/Switcher.pm (file contents):
Revision 1.17 by sashby, Wed Mar 27 17:35:48 2002 UTC vs.
Revision 1.18 by sashby, Fri Oct 11 14:23:24 2002 UTC

# Line 105 | Line 105 | sub parse {
105  
106          # Start file processing
107          while ( ($_=<$filehandle>) ) {
108 +         # Skip lines that start with a hash. A better way
109 +         # of adding comments than ignore tags:
110 +         next if (/^#/);
111           $self->{linecount}++;
112           $self->{currentline}=$_;
113           $self->{stringpos}=0;
# Line 116 | Line 119 | sub parse {
119          # make sure we close the last buffer
120          $self->_calltag($self->{textcontext}, $self->{textcontext},
121                                                          $self->_getstore());
119        #$self->_printstream();
122   }
123  
124   #
# Line 211 | Line 213 | sub _opentag {
213            $self->{tagcontext}="starttag";
214            $self->_checkchar($char);
215          }
214 #       print "\nDebug : Opening $self->{tagcontext}\n";
216   }
217  
218   #
# Line 229 | Line 230 | sub _closetag {
230           $tagroutine=$self->{tagname}."_".$self->{tagcontext};
231           $self->_calltag($tagroutine, $self->{tagname},
232                                                          $self->{tagvar});
232         #print "\nDebug : Closing Tag $tagroutine\n";
233  
234           # -- Now make sure the text context is set for calling routines to
235           # -- deal with text portions outside of tags
# Line 322 | Line 322 | sub _removefromstack {
322          my $this;
323  
324          undef @tempstack;
325        #print "In  ----".$#{$stack};
325          # Keep popping until we find our string
326          while ( ($this=(pop @{$stack})) ne "$name") {
327            push @tempstack, $this;
# Line 333 | Line 332 | sub _removefromstack {
332            $this=pop @tempstack;
333            push @{$stack}, $this;
334          }
336        #print " Out ----".$#{$stack};
335   }
336  
337   #

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines