parameters: (self, command)
return_statement: return completer.CreateSymbols(keywords, completer.TYPE_UNKNOWN)
docstring: Returns the list of possible completions for a command string.
          @param command: command lookup is done on
docstring_summary: Returns the list of possible completions for a command string.
          @param command: command lookup is done on
docstring_tokens: Returns the list of possible completions for a command string . @param command : command lookup is done on
function: def GetAutoCompList(self, command):
          """Returns the list of possible completions for a command string.
          @param command: command lookup is done on
  
          """
          buff = self.GetBuffer()
          keywords = buff.GetKeywords()
          if command in [None, u'']:
              return completer.CreateSymbols(keywords, completer.TYPE_UNKNOWN)
  
          cpos = buff.GetCurrentPos()
          cline = buff.GetCurrentLine()
          lstart = buff.PositionFromLine(cline)
          tmp = buff.GetTextRange(lstart, cpos).rstrip()
  
          # Check for the case of a pseudo class
          if IsPsuedoClass(command, tmp):
              return PSUEDO_SYMBOLS
  
          # Give some help on some common properties
          if tmp.endswith(u':'):
              word = GetWordLeft(tmp.rstrip().rstrip(u':'))
              comps = PROP_OPTS.get(word, list())
              comps = list(set(comps))
              comps.sort()
              return completer.CreateSymbols(comps, completer.TYPE_PROPERTY)
  
          # Look for if we are completing a tag class
          if tmp.endswith(u'.'):
              classes = list()
              if not buff.IsString(cpos):
                  txt = buff.GetText()
                  txt = RE_CSS_COMMENT.sub(u'', txt)
                  txt = RE_CSS_BLOCK.sub(u' ', txt)
                  for token in txt.split():
                      if u'.' in token:
                          classes.append(token.split(u'.', 1)[-1])
  
                  classes = list(set(classes))
                  classes.sort()
              return completer.CreateSymbols(classes, completer.TYPE_CLASS)
  
          return completer.CreateSymbols(keywords, completer.TYPE_UNKNOWN)
function_tokens: def GetAutoCompList ( self , command ) : buff = self . GetBuffer ( ) keywords = buff . GetKeywords ( ) if command in [ None , u'' ] : return completer . CreateSymbols ( keywords , completer . TYPE_UNKNOWN ) cpos = buff . GetCurrentPos ( ) cline = buff . GetCurrentLine ( ) lstart = buff . PositionFromLine ( cline ) tmp = buff . GetTextRange ( lstart , cpos ) . rstrip ( ) # Check for the case of a pseudo class if IsPsuedoClass ( command , tmp ) : return PSUEDO_SYMBOLS # Give some help on some common properties if tmp . endswith ( u':' ) : word = GetWordLeft ( tmp . rstrip ( ) . rstrip ( u':' ) ) comps = PROP_OPTS . get ( word , list ( ) ) comps = list ( set ( comps ) ) comps . sort ( ) return completer . CreateSymbols ( comps , completer . TYPE_PROPERTY ) # Look for if we are completing a tag class if tmp . endswith ( u'.' ) : classes = list ( ) if not buff . IsString ( cpos ) : txt = buff . GetText ( ) txt = RE_CSS_COMMENT . sub ( u'' , txt ) txt = RE_CSS_BLOCK . sub ( u' ' , txt ) for token in txt . split ( ) : if u'.' in token : classes . append ( token . split ( u'.' , 1 ) [ - 1 ] ) classes = list ( set ( classes ) ) classes . sort ( ) return completer . CreateSymbols ( classes , completer . TYPE_CLASS ) return completer . CreateSymbols ( keywords , completer . TYPE_UNKNOWN )