Package pallavi :: Package plugins :: Module Lexing :: Class LexerInfo
[hide private]
[frames] | no frames]

Class LexerInfo

source code


Class collects information about a specific lexing mode, including information for syntax parsing as well as possibly info for code folding, autoindent, and other features.

Contains a list of extensions to be associated with files of that type, a match for shebang lines (first line is #! ....), the lexer to use, the list of keywords to match, and other features.

Instance Methods [hide private]
 
__init__(self, dictionary)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__getitem__(self, key)
Get an arbitrary item from the dictionary
source code
 
MatchesFilename(self, filename)
Determine if this lexer is fit to parse a particular file based on its filename.
source code
 
MatchesShebang(self, firstline)
Determine if this lexer is fit to parse a particular file based on its first line.
source code
 
Matches(self, filename, firstline) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, dictionary)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)