- Timestamp:
- 10/30/08 19:05:44 (2 months ago)
- Files:
-
- 1 modified
-
src/perl6/STD_syntax_highlight (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/perl6/STD_syntax_highlight
r22829 r22830 387 387 @rules = reverse(split / /,$last_tree) if $last_tree ne ''; 388 388 for $rule (@rules) { 389 if($colors{$rule} && $buffer ne '') { 389 if($rule eq 'unv') { 390 $rule_to_color = '_comment'; 391 last; 392 } elsif($colors{$rule} && $buffer ne '') { 390 393 $rule_to_color = $rule; 391 394 last; … … 399 402 $str .= qq{<span class="_routine">$buffer</span>}; 400 403 } else { 401 $str .= qq{<span class= '$rule_to_color'>$buffer</span>};404 $str .= qq{<span class="$rule_to_color">$buffer</span>}; 402 405 } 403 406 } else { 404 $str .= qq{<span class= '$rule_to_color'>$buffer</span>};407 $str .= qq{<span class="$rule_to_color">$buffer</span>}; 405 408 } 406 409 } else {
