class Rouge::Lexers::Mathematica
Public Class Methods
builtins()
click to toggle source
The list of built-in symbols comes from a wolfram server and is created automatically by rake
# File lib/rouge/lexers/mathematica.rb, line 57 def self.builtins load Pathname.new(__FILE__).dirname.join('mathematica/builtins.rb') self.builtins end
keywords()
click to toggle source
Although Module, With and Block are normal built-in symbols, we give them a special treatment as they are the most important expressions for defining local variables
# File lib/rouge/lexers/mathematica.rb, line 50 def self.keywords @keywords = Set.new %w( Module With Block ) end