Class/Module Index [+]

Quicksearch

Rouge::Lexers::ObjectiveC

Public Class Methods

analyze_text(text) click to toggle source
# File lib/rouge/lexers/objective_c.rb, line 29
def self.analyze_text(text)
  return 1 if text =~ /@(end|implementation|protocol|property)\b/

  id = /[a-z$_][a-z0-9$_]*/
  return 0.4 if text =~ %(
    \[ \s* #{id} \s+
    (?:
      #{id} \s* \]
      | #{id}? :
    )
  )
  return 0.4 if text.include? '@"'
end
at_builtins() click to toggle source
# File lib/rouge/lexers/objective_c.rb, line 21
def self.at_builtins
  @at_builtins ||= %(true false YES NO)
end
at_keywords() click to toggle source
# File lib/rouge/lexers/objective_c.rb, line 13
def self.at_keywords
  @at_keywords ||= %(
    selector private protected public encode synchronized try
    throw catch finally end property synthesize dynamic optional
    interface implementation
  )
end
builtins() click to toggle source
# File lib/rouge/lexers/objective_c.rb, line 25
def self.builtins
  @builtins ||= %(YES NO nil)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.