Skip to content

Commit

Permalink
Fix NameError in the Mojo lexer in Ruby 2.7 (#2068)
Browse files Browse the repository at this point in the history
* Fix CI for 2.7

* Use load_lexer instead
  • Loading branch information
bartbroere authored Sep 11, 2024
1 parent 90b5c83 commit 7ebb8d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rouge/lexers/mojo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

module Rouge
module Lexers
load_lexer 'python.rb'

class Mojo < Python
title "Mojo"
desc "The Mojo programming language (modular.com)"
Expand Down

0 comments on commit 7ebb8d1

Please sign in to comment.