Commits

William Fulton  committed 6278ed6

Add a mime type for SWIG files. Choose 'text/swig' - a Google search indicates it isn't being used. Note that 'text/x-swig' is not used as the x- prefix is deprecated, see http://tools.ietf.org/html/rfc6648.

  • Participants
  • Parent commits 2274a03

Comments (0)

Files changed (1)

File pygments/lexers/compiled.py

     name = 'SWIG'
     aliases = ['swig']
     filenames = ['*.swg', '*.i']
-    mimetypes = []
+    mimetypes = ['text/swig']
     priority = 0.04 # Lower than C/C++ and Objective C/C++
 
     tokens = {