9 |
9 |
10 # |
10 # |
11 # Lexer class is derived from the highlighter contained in the Kivy package. |
11 # Lexer class is derived from the highlighter contained in the Kivy package. |
12 # Copyright of the original by the Kivy Team. |
12 # Copyright of the original by the Kivy Team. |
13 # |
13 # |
14 |
|
15 from __future__ import unicode_literals |
|
16 |
14 |
17 from pygments.lexer import RegexLexer, bygroups, using |
15 from pygments.lexer import RegexLexer, bygroups, using |
18 from pygments.lexers.agile import PythonLexer |
16 from pygments.lexers.agile import PythonLexer |
19 from pygments.token import Comment, Text, Name, Punctuation, Operator |
17 from pygments.token import Comment, Text, Name, Punctuation, Operator |
20 |
18 |
50 (r'(\+)(\s*)([A-Z][A-Za-z0-9]*)', |
48 (r'(\+)(\s*)([A-Z][A-Za-z0-9]*)', |
51 bygroups(Operator, Text, Name.Class)), |
49 bygroups(Operator, Text, Name.Class)), |
52 (r'\s+', Text), |
50 (r'\s+', Text), |
53 (r'[A-Z][A-Za-z0-9]*', Name.Class), |
51 (r'[A-Z][A-Za-z0-9]*', Name.Class), |
54 (r'\]', Punctuation, '#pop')]} |
52 (r'\]', Punctuation, '#pop')]} |
|
53 |
|
54 # |
|
55 # eflag: noqa = M702 |