def _complete_word(self, symbol, attribute):
        """Suggests context completions based exclusively on the word
        preceding the cursor."""
        #The cursor is after a %(,\s and the user is looking for a list
        #of possibilities that is a bit smarter that regular AC.
        if self.context.el_call in ["sub", "fun", "assign", "arith"]:
            if symbol == "":
                #The only possibilities are local vars, global vars or functions
                #presented in that order of likelihood. 
                return self._complete_values()
            else:
                #It is also possible that subroutines are being called, but that
                #the full name hasn't been entered yet.
                return self._complete_values(symbol)
        else:
            return self.context.module.completions(symbol, attribute, True)
def _complete_word ( self , symbol , attribute ) : if self . context . el_call in [ "sub" , "fun" , "assign" , "arith" ] : if symbol == "" : return self . _complete_values ( ) else : return self . _complete_values ( symbol ) else : return self . context . module . completions ( symbol , attribute , True )
Suggests context completions based exclusively on the word
        preceding the cursor.