Commits

Thomas Aglassinger committed e9a02b3

Added guessing for Mathematica notebooks.

  • Participants
  • Parent commits 2cc5760
  • Branches mathematica

Comments (0)

Files changed (1)

File pygments/lexers/_mapping.py

     'MakoXmlLexer': ('pygments.lexers.templates', 'XML+Mako', ('xml+mako',), (), ('application/xml+mako',)),
     'MaqlLexer': ('pygments.lexers.other', 'MAQL', ('maql',), ('*.maql',), ('text/x-gooddata-maql', 'application/x-gooddata-maql')),
     'MasonLexer': ('pygments.lexers.templates', 'Mason', ('mason',), ('*.m', '*.mhtml', '*.mc', '*.mi', 'autohandler', 'dhandler'), ('application/x-mason',)),
-    'MathematicaLexer': ('pygments.lexers.math', 'Mathematica', ('mathematica',), ('*.m',), ('text/x-mathematica',)),
+    'MathematicaLexer': ('pygments.lexers.math', 'Mathematica', ('mathematica',), ('*.m', '*.nb', '*.nbp'), ('application/mathematica',)),
     'MatlabLexer': ('pygments.lexers.math', 'Matlab', ('matlab',), ('*.m',), ('text/matlab',)),
     'MatlabSessionLexer': ('pygments.lexers.math', 'Matlab session', ('matlabsession',), (), ()),
     'MiniDLexer': ('pygments.lexers.agile', 'MiniD', ('minid',), ('*.md',), ('text/x-minidsrc',)),