class Rouge::Lexers::SuperCollider

Public Class Methods

constants() click to toggle source
# File lib/rouge/lexers/supercollider.rb, line 27
def self.constants
  @constants ||= Set.new %w(
    true false nil inf thisThread
    thisMethod thisFunction thisProcess
    thisFunctionDef currentEnvironment
    topEnvironment
  )
end
keywords() click to toggle source
# File lib/rouge/lexers/supercollider.rb, line 12
def self.keywords
  @keywords ||= Set.new %w(
    var arg classvar const super this
  )
end
reserved() click to toggle source

these aren’t technically keywords, but we treat them as such because it makes things clearer 99% of the time

# File lib/rouge/lexers/supercollider.rb, line 21
def self.reserved
  @reserved ||= Set.new %w(
    case do for forBy loop if while new newCopyArgs
  )
end