Parent

Class/Module Index [+]

Quicksearch

Rouge::Lexers::R

Public Class Methods

analyze_text(text) click to toggle source
# File lib/rouge/lexers/r.rb, line 18
def self.analyze_text(text)
  return 1 if text.shebang? 'Rscript'
  return 0.1 if text.include? '->'
end
keywords() click to toggle source
# File lib/rouge/lexers/r.rb, line 12
def self.keywords
  @keywords ||= %(
    if else for while repeat in next break return switch function
  )
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.