2523:139f182b72f6 | 2525:8b507a9a2d40 |
---|---|
4 # | 4 # |
5 | 5 |
6 """ | 6 """ |
7 Module implementing a CSS lexer with some additional methods. | 7 Module implementing a CSS lexer with some additional methods. |
8 """ | 8 """ |
9 | |
10 from __future__ import unicode_literals # __IGNORE_WARNING__ | |
9 | 11 |
10 from PyQt4.Qsci import QsciLexerCSS | 12 from PyQt4.Qsci import QsciLexerCSS |
11 | 13 |
12 from .Lexer import Lexer | 14 from .Lexer import Lexer |
13 import Preferences | 15 import Preferences |
21 """ | 23 """ |
22 Constructor | 24 Constructor |
23 | 25 |
24 @param parent parent widget of this lexer | 26 @param parent parent widget of this lexer |
25 """ | 27 """ |
26 super().__init__(parent) | 28 super(LexerCSS, self).__init__(parent) |
27 Lexer.__init__(self) | 29 Lexer.__init__(self) |
28 | 30 |
29 self.commentString = "#" | 31 self.commentString = "#" |
30 self.streamCommentString = { | 32 self.streamCommentString = { |
31 'start': '/* ', | 33 'start': '/* ', |