QScintilla/Lexers/LexerRuby.py

changeset 948
fe7b94ed01ec
parent 945
8cd4d08fa9f6
child 1131
7781e396c903
equal deleted inserted replaced
946:daf90a162be4 948:fe7b94ed01ec
8 """ 8 """
9 9
10 from PyQt4.Qsci import QsciLexerRuby 10 from PyQt4.Qsci import QsciLexerRuby
11 11
12 from .Lexer import Lexer 12 from .Lexer import Lexer
13 import Preferences
13 14
14 15
15 class LexerRuby(QsciLexerRuby, Lexer): 16 class LexerRuby(QsciLexerRuby, Lexer):
16 """ 17 """
17 Subclass to implement some additional lexer dependant methods. 18 Subclass to implement some additional lexer dependant methods.
24 """ 25 """
25 QsciLexerRuby.__init__(self, parent) 26 QsciLexerRuby.__init__(self, parent)
26 Lexer.__init__(self) 27 Lexer.__init__(self)
27 28
28 self.commentString = "#" 29 self.commentString = "#"
30
31 def initProperties(self):
32 """
33 Public slot to initialize the properties.
34 """
35 try:
36 self.setFoldCompact(Preferences.getEditor("AllFoldCompact"))
37 self.setFoldComments(Preferences.getEditor("RubyFoldComment"))
38 except AttributeError:
39 pass
29 40
30 def autoCompletionWordSeparators(self): 41 def autoCompletionWordSeparators(self):
31 """ 42 """
32 Public method to return the list of separators for autocompletion. 43 Public method to return the list of separators for autocompletion.
33 44

eric ide

mercurial