class Rouge::Lexers::Mojo
Public Class Methods
builtins()
click to toggle source
Calls superclass method
# File lib/rouge/lexers/mojo.rb, line 25 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 14 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 18 def self.keywords @keywords ||= super + %w( fn self alias inout borrowed owned ref var struct trait raises with in match case ) end