Package peppy :: Package lib :: Module foldexplorer :: Class SimpleCLikeFoldFunctionMatchMixin
[frames] | no frames]

Class SimpleCLikeFoldFunctionMatchMixin

object --+
         |
        SimpleCLikeFoldFunctionMatchMixin
Known Subclasses:

Simple getFoldEntryFunctionName provider for C-like languages that matches at the beginning of the line.

This mixin looks at the class attribute 'fold_function_ignore' to determine if a potential fold entry should be included in the function list. 'fold_function_ignore' should be a list of strings without leading whitespace that will be used to match against folded lines.

It also is aware of braces, and if a line contains only a single brace, it will backtrack until it finds a non-blank line.

Instance Methods
 
getFoldEntryFunctionName(self, line)

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables
  fold_function_ignore = ['}', 'if', 'else', 'for', 'do', 'while...
default ignore list for C like languages.
Properties

Inherited from object: __class__

Class Variable Details

fold_function_ignore

default ignore list for C like languages. Override in subclasses if you want to add more entries

Value:
['}',
 'if',
 'else',
 'for',
 'do',
 'while',
 'switch',
 'case',
...