lib/rouge/lexers/javascript.rb in rouge-3.1.0 vs lib/rouge/lexers/javascript.rb in rouge-3.1.1
- old
+ new
@@ -12,10 +12,10 @@
title "JavaScript"
desc "JavaScript, the browser scripting language"
tag 'javascript'
aliases 'js'
- filenames '*.js'
+ filenames '*.js', '*.mjs'
mimetypes 'application/javascript', 'application/x-javascript',
'text/javascript', 'text/x-javascript'
def self.detect?(text)
return 1 if text.shebang?('node')