diff options
author | blackbird <devnull@localhost> | 2006-12-06 15:29:33 +0100 |
---|---|---|
committer | blackbird <devnull@localhost> | 2006-12-06 15:29:33 +0100 |
commit | df7babfb407364329c891878c73fa1d9c0e390ef (patch) | |
tree | db2636359881e5fe2b58e86fbc7790e636a47604 /pygments/lexer.py | |
parent | 0af6c73bc31e0f65164a62eec9892eb26265e2dc (diff) | |
download | pygments-df7babfb407364329c891878c73fa1d9c0e390ef.tar.gz |
[svn] ported the myghty lexer by zzzeek (correct amount of zs and es?) to pygments. Probably licensing issue, i'll resolve that via IRC once he's online
Diffstat (limited to 'pygments/lexer.py')
-rw-r--r-- | pygments/lexer.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pygments/lexer.py b/pygments/lexer.py index ffaeeb55..5b5d18ba 100644 --- a/pygments/lexer.py +++ b/pygments/lexer.py @@ -241,7 +241,9 @@ def bygroups(*args): """ def callback(lexer, match, ctx=None): for i, action in enumerate(args): - if type(action) is _TokenType: + if action is None: + continue + elif type(action) is _TokenType: data = match.group(i + 1) if data: yield match.start(i + 1), action, data |