--- a/QScintilla/Lexers/LexerRuby.py Sat Mar 12 13:47:25 2011 +0100 +++ b/QScintilla/Lexers/LexerRuby.py Sat Mar 12 17:42:26 2011 +0100 @@ -10,6 +10,7 @@ from PyQt4.Qsci import QsciLexerRuby from .Lexer import Lexer +import Preferences class LexerRuby(QsciLexerRuby, Lexer): @@ -27,6 +28,16 @@ self.commentString = "#" + def initProperties(self): + """ + Public slot to initialize the properties. + """ + try: + self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) + self.setFoldComments(Preferences.getEditor("RubyFoldComment")) + except AttributeError: + pass + def autoCompletionWordSeparators(self): """ Public method to return the list of separators for autocompletion.