class Rugments::Lexers::R
Public Class Methods
analyze_text(text)
click to toggle source
# File lib/rugments/lexers/r.rb, line 19 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/rugments/lexers/r.rb, line 13 def self.keywords @keywords ||= %w( if else for while repeat in next break return switch function ) end