lib/rouge/lexers/elixir.rb in rouge-4.1.3 vs lib/rouge/lexers/elixir.rb in rouge-4.2.0

- old
+ new

@@ -12,9 +12,13 @@ tag 'elixir' aliases 'elixir', 'exs' filenames '*.ex', '*.exs' + def self.detect?(text) + return true if text.shebang?('elixir') + end + mimetypes 'text/x-elixir', 'application/x-elixir' state :root do rule %r/\s+/m, Text rule %r/#.*$/, Comment::Single