# File lib/rouge/lexers/coffeescript.rb, line 13 def self.analyze_text(text) return 1 if text.shebang? 'coffee' end
# File lib/rouge/lexers/coffeescript.rb, line 31 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
# File lib/rouge/lexers/coffeescript.rb, line 25 def self.constants @constants ||= Set.new %w( true false yes no on off null NaN Infinity undefined ) end
# File lib/rouge/lexers/coffeescript.rb, line 17 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