class Rouge::Lexers::Lasso

Attributes

keywords[R]

Public Class Methods

analyze_text(text) click to toggle source
# File lib/rouge/lexers/lasso.rb, line 16
def self.analyze_text(text)
  rv = 0.0
  rv += 1 if text.shebang?('lasso9')
  rv += 0.4 if text =~ /<\?(lasso(script)?|=)|no_square_brackets|noprocess/i
  rv += 0.2 if text =~ /define(_tag|_type|\s)/i
  return rv
end
new(*) click to toggle source
Calls superclass method
# File lib/rouge/lexers/lasso.rb, line 24
def initialize(*)
  super

  @start_inline = bool_option(:start_inline)
end

Public Instance Methods

start_inline?() click to toggle source
# File lib/rouge/lexers/lasso.rb, line 30
def start_inline?
  @start_inline
end