RegexLexer
# File lib/rouge/lexers/sml.rb, line 28 def self.analyze_text(text) return 0 end
# File lib/rouge/lexers/sml.rb, line 11 def self.keywords @keywords ||= Set.new %( abstype and andalso as case datatype do else end exception fn fun handle if in infix infixr let local nonfix of op open orelse raise rec then type val with withtype while eqtype functor include sharing sig signature struct structure where ) end
# File lib/rouge/lexers/sml.rb, line 61 def token_for_final_id(id) if self.class.keywords.include? id or self.class.symbolic_reserved.include? id Error else Name end end
Generated with the Darkfish Rdoc Generator 2.