QScintilla/Lexers/LexerRuby.py

changeset 948
fe7b94ed01ec
parent 945
8cd4d08fa9f6
child 1131
7781e396c903
--- 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.

eric ide

mercurial