diff options
author | Gaurav Jain <gaurav@gauravjain.org> | 2014-05-12 12:28:22 -0400 |
---|---|---|
committer | Gaurav Jain <gaurav@gauravjain.org> | 2014-05-12 12:28:22 -0400 |
commit | 79578ba52b4e576d271e6e6bdd5473cb7a6c80ee (patch) | |
tree | ffa4365abf79752973287de4ea469acb67a85c3e /pygments/lexers/compiled.py | |
parent | 5bf77f380a525c335d9b76c34fade5b899ff86c0 (diff) | |
download | pygments-79578ba52b4e576d271e6e6bdd5473cb7a6c80ee.tar.gz |
Additional fixes to reduce line length
Diffstat (limited to 'pygments/lexers/compiled.py')
-rw-r--r-- | pygments/lexers/compiled.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index a34d5ee0..0a59aa4a 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -289,9 +289,12 @@ class SwigLexer(CppLexer): tokens = { 'statements': [ - (r'(%[a-z_][a-z0-9_]*)', Name.Function), # SWIG directives - ('\$\**\&?[a-zA-Z0-9_]+', Name), # Special variables - (r'##*[a-zA-Z_][a-zA-Z0-9_]*', Comment.Preproc), # Stringification / additional preprocessor directives + # SWIG directives + (r'(%[a-z_][a-z0-9_]*)', Name.Function), + # Special variables + ('\$\**\&?\w+', Name), + # Stringification / additional preprocessor directives + (r'##*[a-zA-Z_]\w*', Comment.Preproc), inherit, ], } |