class Rouge::Lexers::Coffeescript
Public Class Methods
builtins()
click to toggle source
# File lib/rouge/lexers/coffeescript.rb, line 32 def self.builtins @builtins ||= Set.new %w( 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 26 def self.constants @constants ||= Set.new %w( true false yes no on off null NaN Infinity undefined ) end
detect?(text)
click to toggle source
# File lib/rouge/lexers/coffeescript.rb, line 14 def self.detect?(text) return true if text.shebang? 'coffee' end
keywords()
click to toggle source
# File lib/rouge/lexers/coffeescript.rb, line 18 def self.keywords @keywords ||= Set.new %w( 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