Changeset 5367
- Timestamp:
- 06/19/09 11:22:37 (3 years ago)
- Location:
- trunk/Padre-Plugin-Perl6/lib/Padre/Plugin
- Files:
-
- 2 edited
-
Perl6.pm (modified) (1 diff)
-
Perl6/Perl6Document.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre-Plugin-Perl6/lib/Padre/Plugin/Perl6.pm
r5356 r5367 60 60 # Read the plugin configuration, and create it if it is not there 61 61 $config = $self->config_read; 62 if( !$config) {62 if(not $config) { 63 63 # no configuration, let us write some defaults 64 $config = {p6_highlight => 0}; 65 $self->config_write($config); 66 } 64 $config = {}; 65 } 66 67 # make sure defaults are respected if they are undefined. 68 if(not defined $config->{colorizer}) { 69 $config->{colorizer} = 'STD'; 70 } 71 if(not defined $config->{p6_highlight}) { 72 $config->{p6_highlight} = 0; 73 } 74 75 # and write the plugin's configuration 76 $self->config_write($config); 67 77 68 78 # let us parse some S29-functions.pod documentation (safely) -
trunk/Padre-Plugin-Perl6/lib/Padre/Plugin/Perl6/Perl6Document.pm
r5366 r5367 29 29 } 30 30 31 # a SLOW WAY to parse and colorize perl6 files 31 # colorizes a Perl 6 document in a timer 32 # one at a time; 33 # now the user can choose between PGE and STD colorizers 34 # via the preferences 32 35 sub colorize { 33 36 my $self = shift; … … 44 47 sub { 45 48 # temporary overlay using the parse tree given by parrot 46 # TODO: let the user select which one to use 47 my $colorizer = 'PGE'; 49 my $colorizer = $config->{colorizer}; 48 50 my $task; 49 51 if($colorizer eq 'STD') {
Note: See TracChangeset
for help on using the changeset viewer.
