Changeset 12003
- Timestamp:
- 07/25/10 20:43:07 (19 months ago)
- Location:
- trunk/Padre-Plugin-PHP
- Files:
-
- 2 edited
-
Changes (modified) (1 diff)
-
lib/Padre/Document/PHP.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre-Plugin-PHP/Changes
r11195 r12003 2 2 3 3 00-load.t added (CHORNY) 4 keywords added to autocompletition (CHORNY) 4 5 5 6 v0.03 2009.11.08 -
trunk/Padre-Plugin-PHP/lib/Padre/Document/PHP.pm
r9078 r12003 99 99 return ("Cannot build regex for '$prefix'"); 100 100 } 101 my @keywords=qw/abstract and array as break 102 case catch cfunction class clone 103 const continue declare default do 104 else elseif enddeclare endfor endforeach 105 endif endswitch endwhile extends final 106 for foreach function global goto 107 if implements interface instanceof 108 namespace new old_function or private 109 protected public static switch throw 110 try use var while xor/; 101 111 102 112 my %seen; 103 113 my @words; 114 push @words, grep { $_ =~ $regex and !$seen{$_}++} @keywords; 104 115 push @words, grep { !$seen{$_}++ } reverse( $pre_text =~ /$regex/g ); 105 116 push @words, grep { !$seen{$_}++ } ( $post_text =~ /$regex/g );
Note: See TracChangeset
for help on using the changeset viewer.
