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 Kernel::load File.join(Lexers::BASE_DIR, 'mathematica/keywords.rb') 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