support *.mjs as JavaScript
This commit is contained in:
parent
85ef413ba8
commit
218141217a
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ class JavascriptLexer(RegexLexer):
|
|||
|
||||
name = 'JavaScript'
|
||||
aliases = ['js', 'javascript']
|
||||
filenames = ['*.js', '*.jsm']
|
||||
filenames = ['*.js', '*.jsm', '*.mjs']
|
||||
mimetypes = ['application/javascript', 'application/x-javascript',
|
||||
'text/x-javascript', 'text/javascript']
|
||||
|
||||
|
@ -1035,7 +1035,6 @@ class CoffeeScriptLexer(RegexLexer):
|
|||
filenames = ['*.coffee']
|
||||
mimetypes = ['text/coffeescript']
|
||||
|
||||
|
||||
_operator_re = (
|
||||
r'\+\+|~|&&|\band\b|\bor\b|\bis\b|\bisnt\b|\bnot\b|\?|:|'
|
||||
r'\|\||\\(?=\n)|'
|
||||
|
@ -1464,6 +1463,7 @@ class EarlGreyLexer(RegexLexer):
|
|||
],
|
||||
}
|
||||
|
||||
|
||||
class JuttleLexer(RegexLexer):
|
||||
"""
|
||||
For `Juttle`_ source code.
|
||||
|
|
Loading…
Reference in a new issue