eric6/QScintilla/Lexers/LexerPython.py

changeset 7658
3975d0659673
parent 7635
0cdead130a81
child 7781
607a6098cb44
diff -r 428836188b88 -r 3975d0659673 eric6/QScintilla/Lexers/LexerPython.py
--- a/eric6/QScintilla/Lexers/LexerPython.py	Sat Aug 01 11:16:56 2020 +0200
+++ b/eric6/QScintilla/Lexers/LexerPython.py	Sun Aug 02 17:19:20 2020 +0200
@@ -234,6 +234,9 @@
         """
         if kwSet == 1:
             if self.language() == "Python3":
+                import keyword
+                keywords = " ".join(keyword.kwlist)
+            elif self.language() == "MicroPython":
                 keywords = ("False None True and as assert break class "
                             "continue def del elif else except finally for "
                             "from global if import in is lambda nonlocal not "

eric ide

mercurial