diff python/codeeditor.py @ 100:fe145e42259d

Fixes after movage
author windel
date Mon, 24 Dec 2012 16:35:22 +0100
parents 5a965e9664f2
children af0d7913677a
line wrap: on
line diff
--- a/python/codeeditor.py	Mon Dec 24 15:03:30 2012 +0100
+++ b/python/codeeditor.py	Mon Dec 24 16:35:22 2012 +0100
@@ -1,6 +1,6 @@
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
-import compiler.lexer
+#import compiler.lexer
 import os.path
 
 class MySyntaxHighlighter(QSyntaxHighlighter):
@@ -11,9 +11,9 @@
       fmt = QTextCharFormat()
       fmt.setForeground(Qt.darkBlue)
       fmt.setFontWeight(QFont.Bold)
-      for kw in compiler.lexer.keywords:
-         pattern = '\\b'+kw+'\\b'
-         self.rules.append( (pattern, fmt) )
+      #for kw in compiler.lexer.keywords:
+      #   pattern = '\\b'+kw+'\\b'
+      #   self.rules.append( (pattern, fmt) )
 
       # Comments:
       fmt = QTextCharFormat()