/[suikacvs]/markup/html/whatpm/Whatpm/H2H.pm
Suika

Diff of /markup/html/whatpm/Whatpm/H2H.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by wakaba, Sun Aug 5 09:24:56 2007 UTC revision 1.4 by wakaba, Sun Aug 17 05:09:12 2008 UTC
# Line 164  sub _shift_token ($) { Line 164  sub _shift_token ($) {
164            if ($line =~ s/^<([a-z0-9]+)\s*//) {            if ($line =~ s/^<([a-z0-9]+)\s*//) {
165              my $tagname = $1;              my $tagname = $1;
166              push @token, {type => 'start', value => $tagname};              push @token, {type => 'start', value => $tagname};
167              while ($line =~ s/^([a-z-]+)\s*=\s*"([^"]*)"\s*//) {              while ($line =~ s/^([a-z-]+)\s*=\s*(?>"([^"]*)"|([^\s">]*))\s*//) {
168                push @token, {type => $1, value => $attrvalue->($2)};                push @token, {type => $1,
169                                value => $attrvalue->(defined $2 ? $2 : $3)};
170              }              }
171              $line =~ s#^/?\s*>##;              $line =~ s#^/?\s*>##;
172              push @token, {type => 'end', value => $tagname}              push @token, {type => 'end', value => $tagname}

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24