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