class Rouge::Lexers::Matlab
Public Class Methods
analyze_text(text)
click to toggle source
# File lib/rouge/lexers/matlab.rb, line 12 def self.analyze_text(text) return 0.4 if text.match(/^\s*% /) # % comments are a dead giveaway end
builtins()
click to toggle source
# File lib/rouge/lexers/matlab.rb, line 23 def self.builtins load Pathname.new(__FILE__).dirname.join('matlab/builtins.rb') self.builtins end
keywords()
click to toggle source
# File lib/rouge/lexers/matlab.rb, line 16 def self.keywords @keywords = Set.new %w( break case catch classdef continue else elseif end for function global if otherwise parfor persistent return spmd switch try while ) end