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