ProjectKivy/KivyLexer.py

branch
eric7
changeset 46
2ff6b838b040
parent 43
e0ec8dc346a0
child 47
072c7c4791d4
diff -r 9249df1200c1 -r 2ff6b838b040 ProjectKivy/KivyLexer.py
--- a/ProjectKivy/KivyLexer.py	Thu May 27 18:09:18 2021 +0200
+++ b/ProjectKivy/KivyLexer.py	Thu May 27 18:21:00 2021 +0200
@@ -41,7 +41,9 @@
                 bygroups(Name.Class, Text, Punctuation, Text)),
             (r'(.*?)(\s*)(:)(\s*)(.*?)$',
                 bygroups(Name.Attribute, Text, Punctuation, Text,
-                         using(PythonLexer)))],
+                         using(PythonLexer))),
+            (r'[^:]+?$', using(PythonLexer))
+        ],
         'classList': [
             (r'(,)(\s*)([A-Z][A-Za-z0-9]*)',
                 bygroups(Punctuation, Text, Name.Class)),
@@ -49,7 +51,9 @@
                 bygroups(Operator, Text, Name.Class)),
             (r'\s+', Text),
             (r'[A-Z][A-Za-z0-9]*', Name.Class),
-            (r'\]', Punctuation, '#pop')]}
+            (r'\]', Punctuation, '#pop')
+        ],
+    }
 
 #
 # eflag: noqa = M702

eric ide

mercurial