jaz303/phake — pull request #9 by radugasler (2012-09-19 12:40:39+00:00)
Title: Fix completion if word-to-complete contains colon (:)

The recommended way to handle colons in completion words
is by using the helper methods:
* _get_comp_words_by_ref with the -n : option
gets the word-to-complete without considering a colon as a word break
* __ltrim_colon_completions
removes colon containing prefix from COMPREPLY items
(a workaround for http://tiswww.case.edu/php/chet/bash/FAQ - E13)

Using the helper methods also simplifies the script and
ensures that we get the same behavior on any environment.

Tested on Ubuntu 12.04, Red Hat 5 and 6.