eric7.QScintilla.Lexers.LexerJavaScript

Module implementing a JavaScript lexer with some additional methods.

Global Attributes

None

Classes

LexerJavaScript Subclass to implement some additional lexer dependant methods.

Functions

createLexer Function to instantiate a lexer object.


LexerJavaScript

Subclass to implement some additional lexer dependant methods.

Derived from

Lexer, QsciLexerJavaScript

Class Attributes

None

Class Methods

None

Methods

LexerJavaScript 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.
maximumKeywordSet Public method to get the maximum keyword set.

Static Methods

None

LexerJavaScript (Constructor)

LexerJavaScript(parent=None)

Constructor

parent (QWidget)
parent widget of this lexer

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

LexerJavaScript.initProperties

initProperties()

Public slot to initialize the properties.

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

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

LexerJavaScript.maximumKeywordSet

maximumKeywordSet()

Public method to get the maximum keyword set.

Return:
maximum keyword set
Return Type:
int
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:
LexerJavaScript
Up