Parent

Class/Module Index [+]

Quicksearch

Rouge::Lexers::Coffeescript

Public Class Methods

analyze_text(text) click to toggle source
# File lib/rouge/lexers/coffeescript.rb, line 11
def self.analyze_text(text)
  return 1 if text.shebang? 'coffee'
end
builtins() click to toggle source
# File lib/rouge/lexers/coffeescript.rb, line 29
def self.builtins
  @builtins ||= Set.new %(
    Array Boolean Date Error Function Math netscape Number Object
    Packages RegExp String sun decodeURI decodeURIComponent
    encodeURI encodeURIComponent eval isFinite isNaN parseFloat
    parseInt document window
  )
end
constants() click to toggle source
# File lib/rouge/lexers/coffeescript.rb, line 23
def self.constants
  @constants ||= Set.new %(
    true false yes no on off null NaN Infinity undefined
  )
end
keywords() click to toggle source
# File lib/rouge/lexers/coffeescript.rb, line 15
def self.keywords
  @keywords ||= Set.new %(
    for in of while break return continue switch when then if else
    throw try catch finally new delete typeof instanceof super
    extends this class by
  )
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.