summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthatch <devnull@localhost>2010-05-05 17:01:43 -0700
committerthatch <devnull@localhost>2010-05-05 17:01:43 -0700
commit9aaa94a11050a8dea4649e76fee572ab10c46ee6 (patch)
treea7499cb2905290166910ccb378e25955f650c0fe
parentd224662ec11d153652b48c972725514c6bea89fe (diff)
downloadpygments-9aaa94a11050a8dea4649e76fee572ab10c46ee6.tar.gz
#504: support application/javascript mimetype in the JavascriptLexer
-rw-r--r--pygments/lexers/web.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py
index 661f3b54..3c4ba4dd 100644
--- a/pygments/lexers/web.py
+++ b/pygments/lexers/web.py
@@ -36,7 +36,8 @@ class JavascriptLexer(RegexLexer):
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 = {