summaryrefslogtreecommitdiff
path: root/pygments/lexers/compiled.py
diff options
context:
space:
mode:
authorGaurav Jain <gaurav@gauravjain.org>2014-04-29 22:45:58 -0400
committerGaurav Jain <gaurav@gauravjain.org>2014-04-29 22:45:58 -0400
commit93c7b130ad8712bff29c98ce619914cbc803f3f3 (patch)
tree2e06c26ea25ddd0bc0af1ab149cbba626362abeb /pygments/lexers/compiled.py
parent56d9659a5bccd4010f2fdc7becb8389aff363f83 (diff)
downloadpygments-93c7b130ad8712bff29c98ce619914cbc803f3f3.tar.gz
Use default state transition to eliminate unecessary empty tokens
Diffstat (limited to 'pygments/lexers/compiled.py')
-rw-r--r--pygments/lexers/compiled.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py
index 2e111deb..d70cf38f 100644
--- a/pygments/lexers/compiled.py
+++ b/pygments/lexers/compiled.py
@@ -13,7 +13,7 @@ import re
from string import Template
from pygments.lexer import Lexer, RegexLexer, include, bygroups, using, \
- this, combined, inherit, do_insertions
+ this, combined, inherit, do_insertions, default
from pygments.util import get_bool_opt, get_list_opt
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
Number, Punctuation, Error, Literal, Generic
@@ -107,7 +107,7 @@ class CFamilyLexer(RegexLexer):
r'(' + _ws + r')?(;)',
bygroups(using(this), Name.Function, using(this), using(this),
Punctuation)),
- ('', Text, 'statement'),
+ default('statement'),
],
'statement' : [
include('whitespace'),