1. Georg Brandl
  2. pygments-main

Commits

thatch  committed c47e74b

#504: support application/javascript mimetype in the JavascriptLexer

  • Participants
  • Parent commits fee42a2
  • Branches trunk

Comments (0)

Files changed (1)

File pygments/lexers/web.py

View file
     name = 'JavaScript'
     aliases = ['js', 'javascript']
     filenames = ['*.js']
-    mimetypes = ['application/x-javascript', 'text/x-javascript', 'text/javascript']
+    mimetypes = ['application/javascript', 'application/x-javascript',
+                 'text/x-javascript', 'text/javascript']
 
     flags = re.DOTALL
     tokens = {