Commits

jauneau committed 4d0ed72

Added *.json as JavascriptLexer filename.
Added application/json as JavascriptLexer mime type.

  • Participants
  • Parent commits 7c7374e

Comments (0)

Files changed (1)

pygments/lexers/web.py

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