Skip to content

Commit

Permalink
Merge pull request #866 from Kovensky/patch-2
Browse files Browse the repository at this point in the history
Detect *.mjs files as being JavaScript
  • Loading branch information
gfx authored Jan 31, 2018
2 parents 367e989 + d841fef commit d3ad092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge/lexers/javascript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Javascript < RegexLexer

tag 'javascript'
aliases 'js'
filenames '*.js'
filenames '*.js', '*.mjs'
mimetypes 'application/javascript', 'application/x-javascript',
'text/javascript', 'text/x-javascript'

Expand Down

0 comments on commit d3ad092

Please sign in to comment.