Changeset 2279


Ignore:
Timestamp:
12/30/08 08:08:26 (3 years ago)
Author:
szabgab
Message:

reuse the new lexer function of the Document::Perl subclass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Wx/Menu/Perl.pm

    r2275 r2279  
    8888                my $doc = $editor->{Document}; 
    8989                next unless $doc->isa('Padre::Document::Perl'); 
     90                $editor->SetLexer( $doc->lexer ); 
    9091                if ( $config->{ppi_highlight} ) { 
    91                     $editor->SetLexer(Wx::wxSTC_LEX_CONTAINER); 
    9292                    $doc->colorize; 
    9393                } else { 
    94                     $editor->SetLexer(Wx::wxSTC_LEX_PERL); 
    9594                    $doc->remove_color; 
    9695                    $editor->Colourise( 0, $editor->GetLength ); 
Note: See TracChangeset for help on using the changeset viewer.