diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-07-10 02:23:13 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-07-10 02:23:13 -0400 |
commit | d30b4d66828b31823af1885d48a07825b4b570ee (patch) | |
tree | ca6dbbc004348ed47259a9e32c67c6179cb2baad /lib/Reply/Plugin/Autocomplete/Packages.pm | |
parent | 99202371c7784d346cf43a4c25c64bb6d7630f10 (diff) | |
download | reply-d30b4d66828b31823af1885d48a07825b4b570ee.tar.gz reply-d30b4d66828b31823af1885d48a07825b4b570ee.zip |
autocomplete for commands (fixes #18)
Diffstat (limited to 'lib/Reply/Plugin/Autocomplete/Packages.pm')
-rw-r--r-- | lib/Reply/Plugin/Autocomplete/Packages.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Reply/Plugin/Autocomplete/Packages.pm b/lib/Reply/Plugin/Autocomplete/Packages.pm index 91306c4..c2bb6a0 100644 --- a/lib/Reply/Plugin/Autocomplete/Packages.pm +++ b/lib/Reply/Plugin/Autocomplete/Packages.pm @@ -29,6 +29,7 @@ sub tab_handler { # $module_name_rx does not permit trailing :: my ($before, $package_fragment) = $line =~ /(.*?)(${module_name_rx}:?:?)$/; return unless $package_fragment; + return if $before =~ /^#/; # command return if $before =~ /->\s*$/; # method call return if $before =~ /[\$\@\%\&\*]\s*$/; |