Changeset 21213 for misc/pixie/insert_actions
- Timestamp:
- 07/04/08 13:39:38 (5 months ago)
- Files:
-
- 1 modified
-
misc/pixie/insert_actions (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
misc/pixie/insert_actions
r21110 r21213 17 17 my ($name); 18 18 for (<$std>) { 19 if (/(?: token|rule) ([\w:]+)/) {19 if (/(?:regex|rule|token) \s+ ([:\w]+?(?:sym<.*?>)?)\s/x) { 20 20 $name = $1; 21 $name =~ s/:sym<(.*)>/$1/; 21 22 # warn YELLOW,"$name",RESET; 22 23 } 23 if (/\{\*\} \s* (?:\#=(.*))?/x) {24 if (/\{\*\} .*? (?:\#=(.*))?$/x) { 24 25 my $tag = $1 || ""; 25 26 my $full_name = $name . $tag; 26 # warn "inserting ".GREEN.$full_name.RESET if $actions{$full_name};27 # warn "inserting ".GREEN.$full_name.RESET."\n".$_ if $actions{$full_name}; 27 28 # warn "not inserting <".RED.$full_name.RESET.">" unless $actions{$full_name}; 28 29 my $content = $actions{$full_name} // "*";
