summaryrefslogtreecommitdiff
path: root/pygments/lexers/resource.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-16 10:01:17 +0200
committerGeorg Brandl <georg@python.org>2014-10-16 10:01:17 +0200
commitf73424b26123a98834eb82ddf799e47e2a2a6c38 (patch)
treeb98a9d8c70cbcad34cb020224ecd52a23fb96876 /pygments/lexers/resource.py
parent5727fe42393a86817bd0f702d93c3fc399b68eb3 (diff)
downloadpygments-f73424b26123a98834eb82ddf799e47e2a2a6c38.tar.gz
More fixes thanks to regexlint.
Diffstat (limited to 'pygments/lexers/resource.py')
-rw-r--r--pygments/lexers/resource.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pygments/lexers/resource.py b/pygments/lexers/resource.py
index 681c4c6c..1ac0819f 100644
--- a/pygments/lexers/resource.py
+++ b/pygments/lexers/resource.py
@@ -39,7 +39,7 @@ class ResourceLexer(RegexLexer):
(words(_types), Keyword),
],
'string': [
- (r'(\\x[0-9a-fA-F]{2}|\\u[0-9a-fA-F]{4}|\\U00[0-9a-fA-F]{6}|'
+ (r'(\\x[0-9a-f]{2}|\\u[0-9a-f]{4}|\\U00[0-9a-f]{6}|'
r'\\[0-7]{1,3}|\\c.|\\[abtnvfre\'"?\\]|\\\{|[^"{\\])+', String),
(r'\{', String.Escape, 'msgname'),
(r'"', String, '#pop')
@@ -50,13 +50,13 @@ class ResourceLexer(RegexLexer):
'message': [
(r'\{', String.Escape, 'msgname'),
(r'\}', String.Escape, '#pop'),
- (r'(,)(\s*)([a-zA-Z]+)(\s*\})',
+ (r'(,)(\s*)([a-z]+)(\s*\})',
bygroups(Operator, String.Escape, Keyword, String.Escape), '#pop'),
- (r'(,)(\s*)([a-zA-Z]+)(\s*)(,)(\s*)(offset)(\s*)(:)(\s*)(-?\d+)(\s*)',
+ (r'(,)(\s*)([a-z]+)(\s*)(,)(\s*)(offset)(\s*)(:)(\s*)(-?\d+)(\s*)',
bygroups(Operator, String.Escape, Keyword, String.Escape, Operator,
String.Escape, Operator.Word, String.Escape, Operator,
String.Escape, Number.Integer, String.Escape), 'choice'),
- (r'(,)(\s*)([a-zA-Z]+)(\s*)(,)(\s*)',
+ (r'(,)(\s*)([a-z]+)(\s*)(,)(\s*)',
bygroups(Operator, String.Escape, Keyword, String.Escape, Operator,
String.Escape), 'choice'),
(r'\s+', String.Escape)
@@ -64,7 +64,7 @@ class ResourceLexer(RegexLexer):
'choice': [
(r'(=|<|>|<=|>=|!=)(-?\d+)(\s*\{)',
bygroups(Operator, Number.Integer, String.Escape), 'message'),
- (r'([a-zA-Z]+)(\s*\{)', bygroups(Keyword.Type, String.Escape), 'str'),
+ (r'([a-z]+)(\s*\{)', bygroups(Keyword.Type, String.Escape), 'str'),
(r'\}', String.Escape, ('#pop', '#pop')),
(r'\s+', String.Escape)
],