Changeset 23027 for src

Show
Ignore:
Timestamp:
11/15/08 19:43:02 (8 weeks ago)
Author:
azawawi
Message:

[STD_syntax_highlight] fixed identifier and sigil matching to be more exact

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/perl6/STD_syntax_highlight

    r23023 r23027  
    469469            } 
    470470            if($rule_to_color) { 
    471                 if($last_tree =~ /identifier/) { 
     471                if($last_tree =~ /\sidentifier/) { 
    472472                    if($parser->is_type($buffer)) { 
    473473                        $rule_to_color = '_type'; 
     
    478478                        $last_type = ''; 
    479479                    } 
    480                 } elsif($last_tree =~ /sigil/) { 
     480                } elsif($last_tree =~ /\ssigil/) { 
    481481                    given($buffer) { 
    482482                        when ('$') { $last_type = '_scalar'; }