QScintilla/Lexers/LexerPython.py

changeset 948
fe7b94ed01ec
parent 945
8cd4d08fa9f6
child 1131
7781e396c903
equal deleted inserted replaced
946:daf90a162be4 948:fe7b94ed01ec
55 self.setAutoIndentStyle(QsciScintilla.AiMaintain) 55 self.setAutoIndentStyle(QsciScintilla.AiMaintain)
56 try: 56 try:
57 self.setV2UnicodeAllowed(Preferences.getEditor("PythonAllowV2Unicode")) 57 self.setV2UnicodeAllowed(Preferences.getEditor("PythonAllowV2Unicode"))
58 self.setV3BinaryOctalAllowed(Preferences.getEditor("PythonAllowV3Binary")) 58 self.setV3BinaryOctalAllowed(Preferences.getEditor("PythonAllowV3Binary"))
59 self.setV3BytesAllowed(Preferences.getEditor("PythonAllowV3Bytes")) 59 self.setV3BytesAllowed(Preferences.getEditor("PythonAllowV3Bytes"))
60 except AttributeError:
61 pass
62 try:
63 self.setFoldQuotes(Preferences.getEditor("PythonFoldQuotes"))
64 self.setStringsOverNewlineAllowed(
65 Preferences.getEditor("PythonStringsOverNewLineAllowed"))
60 except AttributeError: 66 except AttributeError:
61 pass 67 pass
62 68
63 def getIndentationDifference(self, line, editor): 69 def getIndentationDifference(self, line, editor):
64 """ 70 """

eric ide

mercurial