class Rouge::Lexers::ObjectiveC

def self.analyze_text(text)

def self.analyze_text(text)
  return 1 if text =~ /@(end|implementation|protocol|property)\b/
  id = /[a-z$_][a-z0-9$_]*/i
  return 0.4 if text =~ %r(
    \[ \s* #{id} \s+
    (?:
      #{id} \s* \]
      | #{id}? :
    )
  )x
  return 0.4 if text.include? '@"'
end

def self.at_builtins

def self.at_builtins
  @at_builtins ||= %w(true false YES NO)
end

def self.at_keywords

def self.at_keywords
  @at_keywords ||= %w(
    selector private protected public encode synchronized try
    throw catch finally end property synthesize dynamic optional
    interface implementation import
  )
end

def self.builtins

def self.builtins
  @builtins ||= %w(YES NO nil)
end