eric7.QScintilla.Lexers.LexerQSS

Module implementing a QSS lexer with some additional methods.

Global Attributes

None

Classes

LexerQSS Subclass to implement some additional lexer dependent methods.

Functions

createLexer Function to instantiate a lexer object.


LexerQSS

Subclass to implement some additional lexer dependent methods.

Derived from

Lexer, QsciLexerCSS

Class Attributes

None

Class Methods

None

Methods

LexerQSS Constructor
defaultKeywords Public method to get the default keywords.
initProperties Public slot to initialize the properties.
isCommentStyle Public method to check, if a style is a comment style.
isStringStyle Public method to check, if a style is a string style.
language Public method to return the lexer language.
lexerName Public method to return the lexer name.

Static Methods

None

LexerQSS (Constructor)

LexerQSS(parent=None)

Constructor

parent (QWidget)
parent widget of this lexer

LexerQSS.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

LexerQSS.initProperties

initProperties()

Public slot to initialize the properties.

LexerQSS.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

LexerQSS.isStringStyle

isStringStyle(style)

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

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

LexerQSS.language

language()

Public method to return the lexer language.

Return:
lexer language
Return Type:
str

LexerQSS.lexerName

lexerName()

Public method to return the lexer name.

Return:
lexer name
Return Type:
str
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:
LexerQSS
Up