src/eric7/QScintilla/Lexers/LexerVHDL.py

branch
eric7
changeset 10431
64157aeb0312
parent 10069
435cc5875135
child 10439
21c28b0f9e41
equal deleted inserted replaced
10430:e440aaf179ce 10431:64157aeb0312
22 def __init__(self, parent=None): 22 def __init__(self, parent=None):
23 """ 23 """
24 Constructor 24 Constructor
25 25
26 @param parent parent widget of this lexer 26 @param parent parent widget of this lexer
27 @type QWidget
27 """ 28 """
28 QsciLexerVHDL.__init__(self, parent) 29 QsciLexerVHDL.__init__(self, parent)
29 Lexer.__init__(self) 30 Lexer.__init__(self)
30 31
31 self.commentString = "--" 32 self.commentString = "--"
52 53
53 def isCommentStyle(self, style): 54 def isCommentStyle(self, style):
54 """ 55 """
55 Public method to check, if a style is a comment style. 56 Public method to check, if a style is a comment style.
56 57
57 @param style style to check (integer) 58 @param style style to check
58 @return flag indicating a comment style (boolean) 59 @type int
60 @return flag indicating a comment style
61 @rtype bool
59 """ 62 """
60 return style in [QsciLexerVHDL.Comment, QsciLexerVHDL.CommentLine] 63 return style in [QsciLexerVHDL.Comment, QsciLexerVHDL.CommentLine]
61 64
62 def isStringStyle(self, style): 65 def isStringStyle(self, style):
63 """ 66 """
64 Public method to check, if a style is a string style. 67 Public method to check, if a style is a string style.
65 68
66 @param style style to check (integer) 69 @param style style to check
67 @return flag indicating a string style (boolean) 70 @type int
71 @return flag indicating a string style
72 @rtype bool
68 """ 73 """
69 return style in [QsciLexerVHDL.String, QsciLexerVHDL.UnclosedString] 74 return style in [QsciLexerVHDL.String, QsciLexerVHDL.UnclosedString]
70 75
71 def defaultKeywords(self, kwSet): 76 def defaultKeywords(self, kwSet):
72 """ 77 """
73 Public method to get the default keywords. 78 Public method to get the default keywords.
74 79
75 @param kwSet number of the keyword set (integer) 80 @param kwSet number of the keyword set
76 @return string giving the keywords (string) or None 81 @type int
82 @return string giving the keywords or None
83 @rtype str
77 """ 84 """
78 return QsciLexerVHDL.keywords(self, kwSet) 85 return QsciLexerVHDL.keywords(self, kwSet)
79 86
80 def maximumKeywordSet(self): 87 def maximumKeywordSet(self):
81 """ 88 """
82 Public method to get the maximum keyword set. 89 Public method to get the maximum keyword set.
83 90
84 @return maximum keyword set (integer) 91 @return maximum keyword set
92 @rtype int
85 """ 93 """
86 return 7 94 return 7
87 95
88 96
89 def createLexer(variant="", parent=None): # noqa: U100 97 def createLexer(variant="", parent=None): # noqa: U100

eric ide

mercurial