eric7.QScintilla.Lexers.LexerMakefile

Module implementing a Makefile lexer with some additional methods.

Global Attributes

None

Classes

LexerMakefile Subclass to implement some additional lexer dependant methods.

Functions

createLexer Function to instantiate a lexer object.


LexerMakefile

Subclass to implement some additional lexer dependant methods.

Derived from

Lexer, QsciLexerMakefile

Class Attributes

None

Class Methods

None

Methods

LexerMakefile Constructor
defaultKeywords Public method to get the default keywords.
isCommentStyle Public method to check, if a style is a comment style.
isStringStyle Public method to check, if a style is a string style.

Static Methods

None

LexerMakefile (Constructor)

LexerMakefile(parent=None)

Constructor

parent (QWidget)
parent widget of this lexer

LexerMakefile.defaultKeywords

defaultKeywords(kwSet)

Public method to get the default keywords.

kwSet (int)
number of the keyword set
Return:
string giving the keywords or None
Return Type:
str

LexerMakefile.isCommentStyle

isCommentStyle(style)

Public method to check, if a style is a comment style.

style (int)
style to check
Return:
flag indicating a comment style
Return Type:
bool

LexerMakefile.isStringStyle

isStringStyle(_style)

Public method to check, if a style is a string style.

_style (int)
style to check (unused)
Return:
flag indicating a string style
Return Type:
bool
Up


createLexer

createLexer(variant, parent=None)

Function to instantiate a lexer object.

variant (str)
name of the language variant (unused)
parent (QObject)
parent widget of this lexer
Return:
instantiated lexer object
Return Type:
LexerMakefile
Up