1. Georg Brandl
  2. pygments-main

Commits

William Fulton  committed 2274a03

Change default for SWIG directives

  • Participants
  • Parent commits 030ac7b
  • Branches default

Comments (0)

Files changed (1)

File pygments/lexers/compiled.py

View file
 
     tokens = {
         'statements': [
-            (r'(%[a-z_][a-z0-9_]*)', Name.Tag), # SWIG directives
+            (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
+            (r'#[a-zA-Z_][a-zA-Z0-9_]*', Comment.Preproc), # Stringification / additional preprocessor directives
             inherit,
          ],
     }