class Rouge::Lexers::Livescript
Public Class Methods
builtins()
click to toggle source
# File lib/rouge/lexers/livescript.rb, line 34 def self.builtins @builtins ||= Javascript.builtins + %w(this it that arguments) end
constants()
click to toggle source
# File lib/rouge/lexers/livescript.rb, line 30 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 17 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 13 def self.detect?(text) return text.shebang? 'lsc' end
keywords()
click to toggle source
# File lib/rouge/lexers/livescript.rb, line 21 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 38 def self.loop_control_keywords @loop_control_keywords ||= Set.new %w(break continue) end