summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-08-22 12:25:42 +0200
committerGeorg Brandl <georg@python.org>2010-08-22 12:25:42 +0200
commitf6dcf8c83bb225b3b06e2096fae236132bd56460 (patch)
tree9c095297c58786cfec9a777342486e6f34f4ff72
parent090f2376b50111e9b71f65b105bf9ace953f42ab (diff)
downloadpygments-f6dcf8c83bb225b3b06e2096fae236132bd56460.tar.gz
Fix empty pattern in ps lexer.
-rw-r--r--pygments/lexers/other.py2
-rwxr-xr-xscripts/find_error.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/other.py b/pygments/lexers/other.py
index 286dc68a..38ff49dc 100644
--- a/pygments/lexers/other.py
+++ b/pygments/lexers/other.py
@@ -2381,7 +2381,7 @@ class PostScriptLexer(RegexLexer):
'fill|findfont|floor|get|getinterval|grestore|gsave|gt|'
'identmatrix|idiv|idtransform|index|invertmatrix|itransform|'
'length|lineto|ln|load|log|loop|matrix|mod|moveto|mul|neg|newpath|'
- 'pathforall|pathbbox||pop|print|pstack|put|quit|rand|rangecheck|'
+ 'pathforall|pathbbox|pop|print|pstack|put|quit|rand|rangecheck|'
'rcurveto|repeat|restore|rlineto|rmoveto|roll|rotate|round|run|'
'save|scale|scalefont|setdash|setfont|setgray|setlinecap|'
'setlinejoin|setlinewidth|setmatrix|setrgbcolor|shfill|show|'
diff --git a/scripts/find_error.py b/scripts/find_error.py
index 6b82fcd2..cb22ae89 100755
--- a/scripts/find_error.py
+++ b/scripts/find_error.py
@@ -133,7 +133,7 @@ def main(fn, lexer=None):
print
print
return 1
- tokens.append((type,val))
+ tokens.append((type, val))
if debug_lexer:
if hasattr(lx, 'statestack'):
states.append(lx.statestack[:])