class Rouge::Lexers::Mojo
Public Class Methods
builtins()
click to toggle source
Calls superclass method
# File lib/rouge/lexers/mojo.rb, line 26 def self.builtins @builtins ||= super + %w( __mlir_attr __mlir_type __mlir_op parameter alwaysinline register_passable ) end
detect?(text)
click to toggle source
# File lib/rouge/lexers/mojo.rb, line 15 def self.detect?(text) return true if text.shebang?(/mojow?(?:[23](?:\.\d+)?)?/) end
keywords()
click to toggle source
Calls superclass method
# File lib/rouge/lexers/mojo.rb, line 19 def self.keywords @keywords ||= super + %w( fn self alias out read mut owned ref var struct trait raises with in match case ) end