Skip to content

Commit

Permalink
Add Dangerfile as ruby filename
Browse files Browse the repository at this point in the history
[Danger][1] is a gem which runs ruby code defined in a `Dangerfile`.

There are several examples of it available online [2], [3]. The syntax
highlighting on GH properly detects them. So rouge probably should as well.


[1]: https://danger.systems/ruby/
[2]: https://github.com/samdmarshall/danger/blob/master/Dangerfile
[3]: https://github.com/artsy/eigen/blob/master/Dangerfile
  • Loading branch information
leipert authored Sep 24, 2018
1 parent c2daa8d commit 4c6f1ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rouge/lexers/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class Ruby < RegexLexer
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'

Expand Down

0 comments on commit 4c6f1ff

Please sign in to comment.