Commits

William Fulton committed 2e56e8a

Regular expressions changed for SWIG - same regex just written differently

Comments (0)

Files changed (1)

pygments/lexers/compiled.py

     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
+            ('\$\**\&?[a-zA-Z0-9_]+', Name), # Special variables
+            (r'##*[a-zA-Z_][a-zA-Z0-9_]*', Comment.Preproc), # Stringification / additional preprocessor directives
             inherit,
          ],
     }