class Rouge::Lexers::Livescript

Public Class Methods

builtins() click to toggle source
# File lib/rouge/lexers/livescript.rb, line 35
def self.builtins
  @builtins ||= Javascript.builtins + %w(this it that arguments)
end
constants() click to toggle source
# File lib/rouge/lexers/livescript.rb, line 31
def self.constants
  @constants ||= Javascript.constants + %w(yes no on off void)
end
declarations() click to toggle source
# File lib/rouge/lexers/livescript.rb, line 18
def self.declarations
  @declarations ||= Set.new %w(const let var function class extends implements)
end
detect?(text) click to toggle source
# File lib/rouge/lexers/livescript.rb, line 14
def self.detect?(text)
  return text.shebang? 'lsc'
end
keywords() click to toggle source
# File lib/rouge/lexers/livescript.rb, line 22
def self.keywords
  @keywords ||= Set.new %w(
    loop until for in of while break return continue switch case
    fallthrough default otherwise when then if unless else throw try
    catch finally new delete typeof instanceof super by from to til
    with require do debugger import export yield
  )
end
loop_control_keywords() click to toggle source
# File lib/rouge/lexers/livescript.rb, line 39
def self.loop_control_keywords
  @loop_control_keywords ||= Set.new %w(break continue)
end