eric6/QScintilla/Lexers/__init__.py

changeset 7164
6da6a0a5a448
parent 6942
2602857055c5
child 7192
a22eee00b052
diff -r 00166038bba5 -r 6da6a0a5a448 eric6/QScintilla/Lexers/__init__.py
--- a/eric6/QScintilla/Lexers/__init__.py	Fri Aug 23 20:08:33 2019 +0200
+++ b/eric6/QScintilla/Lexers/__init__.py	Sat Aug 24 16:33:42 2019 +0200
@@ -139,6 +139,8 @@
                     'dummy.py', "lexerPython.png"],
         "Python3": [QCoreApplication.translate('Lexers', "Python3"),
                     'dummy.py', "lexerPython3.png"],
+        "MicroPython": [QCoreApplication.translate('Lexers', "MicroPython"),
+                    'dummy.py', "micropython"],
         "QSS": [QCoreApplication.translate('Lexers', "QSS"), 'dummy.qss',
                 "lexerCSS.png"],
         "Ruby": [QCoreApplication.translate('Lexers', "Ruby"), 'dummy.rb',
@@ -228,7 +230,8 @@
     """
     if not pyname:
         try:
-            if language in ["Python", "Python2", "Python3", "Cython"]:
+            if language in ["Python", "Python2", "Python3", "Cython",
+                            "MicroPython"]:
                 from .LexerPython import LexerPython
                 return LexerPython(language, parent)
             elif language == "C++":

eric ide

mercurial