10 from PyQt4.Qsci import QsciLexerYAML |
10 from PyQt4.Qsci import QsciLexerYAML |
11 |
11 |
12 from .Lexer import Lexer |
12 from .Lexer import Lexer |
13 import Preferences |
13 import Preferences |
14 |
14 |
|
15 |
15 class LexerYAML(QsciLexerYAML, Lexer): |
16 class LexerYAML(QsciLexerYAML, Lexer): |
16 """ |
17 """ |
17 Subclass to implement some additional lexer dependant methods. |
18 Subclass to implement some additional lexer dependant methods. |
18 """ |
19 """ |
19 def __init__(self, parent = None): |
20 def __init__(self, parent=None): |
20 """ |
21 """ |
21 Constructor |
22 Constructor |
22 |
23 |
23 @param parent parent widget of this lexer |
24 @param parent parent widget of this lexer |
24 """ |
25 """ |
51 |
52 |
52 def defaultKeywords(self, kwSet): |
53 def defaultKeywords(self, kwSet): |
53 """ |
54 """ |
54 Public method to get the default keywords. |
55 Public method to get the default keywords. |
55 |
56 |
56 @param kwSet number of the keyword set (integer) |
57 @param kwSet number of the keyword set (integer) |
57 @return string giving the keywords (string) or None |
58 @return string giving the keywords (string) or None |
58 """ |
59 """ |
59 return QsciLexerYAML.keywords(self, kwSet) |
60 return QsciLexerYAML.keywords(self, kwSet) |