class Rouge::Lexers::R

Public Class Methods

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