lib/rouge/lexers/ruby.rb in rouge-3.2.1 vs lib/rouge/lexers/ruby.rb in rouge-3.3.0
- old
+ new
@@ -1,16 +1,18 @@
# -*- coding: utf-8 -*- #
+# frozen_string_literal: true
module Rouge
module Lexers
class Ruby < RegexLexer
title "Ruby"
desc "The Ruby programming language (ruby-lang.org)"
tag 'ruby'
aliases 'rb'
filenames '*.rb', '*.ruby', '*.rbw', '*.rake', '*.gemspec', '*.podspec',
'Rakefile', 'Guardfile', 'Gemfile', 'Capfile', 'Podfile',
- 'Vagrantfile', '*.ru', '*.prawn', 'Berksfile', '*.arb'
+ 'Vagrantfile', '*.ru', '*.prawn', 'Berksfile', '*.arb',
+ 'Dangerfile'
mimetypes 'text/x-ruby', 'application/x-ruby'
def self.detect?(text)
return true if text.shebang? 'ruby'