class Rouge::Lexers::Haxe
Public Class Methods
builtins()
click to toggle source
# File lib/rouge/lexers/haxe.rb, line 48 def self.builtins @builtins ||= %w( Void Dynamic Math Class Any Float Int UInt String StringTools Sys EReg isNaN parseFloat parseInt this Array Map Date DateTools Bool Lambda Reflect Std File FileSystem ) end
constants()
click to toggle source
# File lib/rouge/lexers/haxe.rb, line 44 def self.constants @constants ||= Set.new %w(true false null) end
declarations()
click to toggle source
# File lib/rouge/lexers/haxe.rb, line 31 def self.declarations @declarations ||= Set.new %w( abstract dynamic extern extends from implements inline static to typedef var ) end
detect?(text)
click to toggle source
# File lib/rouge/lexers/haxe.rb, line 13 def self.detect?(text) return true if text.shebang? "haxe" end
imports()
click to toggle source
# File lib/rouge/lexers/haxe.rb, line 25 def self.imports @imports ||= Set.new %w( import using ) end
keywords()
click to toggle source
# File lib/rouge/lexers/haxe.rb, line 17 def self.keywords @keywords ||= Set.new %w( break case cast catch class continue default do else enum false for function if import interface macro new null override package private public return switch this throw true try untyped while ) end
reserved()
click to toggle source
# File lib/rouge/lexers/haxe.rb, line 38 def self.reserved @reserved ||= Set.new %w( super trace inline build autoBuild enum ) end