Commits

Tim Hatch committed ce4476b

Fix regexlint-discovered problems in the Smali lexer.

Comments (0)

Files changed (1)

pygments/lexers/dalvik.py

             (r'[0-9]+L?', Number.Integer),
         ],
         'field': [
-            (r'\$?\b([A-Za-z0-9_$]*)(:)', bygroups(Name.Variable,
-                                                   Punctuation)),
+            (r'(\$?\b)([A-Za-z0-9_$]*)(:)',
+             bygroups(Punctuation, Name.Variable, Punctuation)),
         ],
         'method': [
             (r'<(?:cl)?init>', Name.Function), # constructor
-            (r'\$?\b([A-Za-z0-9_$]*)(\()', bygroups(Name.Function,
-                                                    Punctuation)),
+            (r'(\$?\b)([A-Za-z0-9_$]*)(\()',
+             bygroups(Punctuation, Name.Function, Punctuation)),
         ],
         'label': [
             (r':[A-Za-z0-9_]+', Name.Label),