summaryrefslogtreecommitdiff
path: root/pygments/lexers/graphics.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/graphics.py
parent5727fe42393a86817bd0f702d93c3fc399b68eb3 (diff)
downloadpygments-f73424b26123a98834eb82ddf799e47e2a2a6c38.tar.gz
More fixes thanks to regexlint.
Diffstat (limited to 'pygments/lexers/graphics.py')
-rw-r--r--pygments/lexers/graphics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/graphics.py b/pygments/lexers/graphics.py
index 30f2281c..95010046 100644
--- a/pygments/lexers/graphics.py
+++ b/pygments/lexers/graphics.py
@@ -107,7 +107,7 @@ class PostScriptLexer(RegexLexer):
# String literals are awkward; enter separate state.
(r'\(', String, 'stringliteral'),
- (r'[\{\}(\<\<)(\>\>)\[\]]', Punctuation),
+ (r'[{}<>\[\]]', Punctuation),
# Numbers
(r'<[0-9A-Fa-f]+>' + delimiter_end, Number.Hex),
@@ -225,7 +225,7 @@ class AsymptoteLexer(RegexLexer):
r'scaleT|scientific|segment|side|slice|splitface|string|surface|'
r'tensionSpecifier|ticklocate|ticksgridT|tickvalues|transform|'
r'transformation|tree|triangle|trilinear|triple|vector|'
- r'vertex|void)(?=([ ]{1,}[a-zA-Z]))', Keyword.Type),
+ r'vertex|void)(?=\s+[a-zA-Z])', Keyword.Type),
# Now the asy-type-name which are not asy-function-name
# except yours !
# Perhaps useless