summaryrefslogtreecommitdiff
path: root/pygments/lexers/dalvik.py
diff options
context:
space:
mode:
authorGaurav Jain <gaurav@gauravjain.org>2014-05-14 22:41:17 -0400
committerGaurav Jain <gaurav@gauravjain.org>2014-05-14 22:41:17 -0400
commitc526e39da6e14d4e557f854aceaaff86c22530a8 (patch)
treebf866e10c8bb03796256b70e1947060168624a55 /pygments/lexers/dalvik.py
parent745f1e190950d2510aecc33de9f1727e24ddddf0 (diff)
downloadpygments-c526e39da6e14d4e557f854aceaaff86c22530a8.tar.gz
Replace all occurences of a-zA-Z0-9_ with \w
Diffstat (limited to 'pygments/lexers/dalvik.py')
-rw-r--r--pygments/lexers/dalvik.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/dalvik.py b/pygments/lexers/dalvik.py
index 44ec040c..695be6cf 100644
--- a/pygments/lexers/dalvik.py
+++ b/pygments/lexers/dalvik.py
@@ -73,12 +73,12 @@ class SmaliLexer(RegexLexer):
(r'[0-9]+L?', Number.Integer),
],
'field': [
- (r'(\$?\b)([A-Za-z0-9_$]*)(:)',
+ (r'(\$?\b)([\w$]*)(:)',
bygroups(Punctuation, Name.Variable, Punctuation)),
],
'method': [
(r'<(?:cl)?init>', Name.Function), # constructor
- (r'(\$?\b)([A-Za-z0-9_$]*)(\()',
+ (r'(\$?\b)([\w$]*)(\()',
bygroups(Punctuation, Name.Function, Punctuation)),
],
'label': [
@@ -88,7 +88,7 @@ class SmaliLexer(RegexLexer):
# class names in the form Lcom/namespace/ClassName;
# I only want to color the ClassName part, so the namespace part is
# treated as 'Text'
- (r'(L)((?:[A-Za-z0-9_$]+/)*)([A-Za-z0-9_$]+)(;)',
+ (r'(L)((?:[\w$]+/)*)([\w$]+)(;)',
bygroups(Keyword.Type, Text, Name.Class, Text)),
],
'punctuation': [