diff options
author | William Fulton <wsf@fultondesigns.co.uk> | 2013-02-15 23:46:12 +0000 |
---|---|---|
committer | William Fulton <wsf@fultondesigns.co.uk> | 2013-02-15 23:46:12 +0000 |
commit | b73021861e74452bfa60d5ebb89fbb0623acf050 (patch) | |
tree | ce94d9efa21478bc630038d06f5044255760a6c0 /pygments/lexers/compiled.py | |
parent | a324be2ef7cb6f8ada7e71bd41d1ecbc395adccb (diff) | |
download | pygments-b73021861e74452bfa60d5ebb89fbb0623acf050.tar.gz |
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.
Diffstat (limited to 'pygments/lexers/compiled.py')
-rw-r--r-- | pygments/lexers/compiled.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index 331c28c8..455fcb1a 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -238,7 +238,7 @@ class SwigLexer(CppLexer): name = 'SWIG' aliases = ['swig'] filenames = ['*.swg', '*.i'] - mimetypes = [] + mimetypes = ['text/swig'] priority = 0.04 # Lower than C/C++ and Objective C/C++ tokens = { |