diff options
author | Georg Brandl <georg@python.org> | 2014-11-06 13:36:41 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-11-06 13:36:41 +0100 |
commit | 90fe03b0f663810f4b6718d89b5e830ec2c67960 (patch) | |
tree | d5b69099b513da0db10404445613a226a11c46eb /pygments/lexers/dalvik.py | |
parent | 01f13cc2e664ebab1815fbaca35f3815160a8d56 (diff) | |
download | pygments-90fe03b0f663810f4b6718d89b5e830ec2c67960.tar.gz |
Simplify charclasses in a few more modules
Diffstat (limited to 'pygments/lexers/dalvik.py')
-rw-r--r-- | pygments/lexers/dalvik.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pygments/lexers/dalvik.py b/pygments/lexers/dalvik.py index ea09cecb..5f5c6c7f 100644 --- a/pygments/lexers/dalvik.py +++ b/pygments/lexers/dalvik.py @@ -13,7 +13,7 @@ import re from pygments.lexer import RegexLexer, include, bygroups from pygments.token import Keyword, Text, Comment, Name, String, Number, \ - Punctuation + Punctuation __all__ = ['SmaliLexer'] @@ -65,8 +65,8 @@ class SmaliLexer(RegexLexer): (r'\s+', Text), ], 'instruction': [ - (r'\b[vp]\d+\b', Name.Builtin), # registers - (r'\b[a-z][A-Za-z0-9/-]+\s+', Text), # instructions + (r'\b[vp]\d+\b', Name.Builtin), # registers + (r'\b[a-z][A-Za-z0-9/-]+\s+', Text), # instructions ], 'literal': [ (r'".*"', String), @@ -79,7 +79,7 @@ class SmaliLexer(RegexLexer): bygroups(Punctuation, Name.Variable, Punctuation)), ], 'method': [ - (r'<(?:cl)?init>', Name.Function), # constructor + (r'<(?:cl)?init>', Name.Function), # constructor (r'(\$?\b)([\w$]*)(\()', bygroups(Punctuation, Name.Function, Punctuation)), ], @@ -95,7 +95,7 @@ class SmaliLexer(RegexLexer): ], 'punctuation': [ (r'->', Punctuation), - (r'[{},\(\):=\.-]', Punctuation), + (r'[{},():=.-]', Punctuation), ], 'type': [ (r'[ZBSCIJFDV\[]+', Keyword.Type), |