diff options
author | Georg Brandl <georg@python.org> | 2014-10-16 10:01:17 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-16 10:01:17 +0200 |
commit | f73424b26123a98834eb82ddf799e47e2a2a6c38 (patch) | |
tree | b98a9d8c70cbcad34cb020224ecd52a23fb96876 /pygments/lexers/graphics.py | |
parent | 5727fe42393a86817bd0f702d93c3fc399b68eb3 (diff) | |
download | pygments-f73424b26123a98834eb82ddf799e47e2a2a6c38.tar.gz |
More fixes thanks to regexlint.
Diffstat (limited to 'pygments/lexers/graphics.py')
-rw-r--r-- | pygments/lexers/graphics.py | 4 |
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 |