Module: Rouge::Lexers::ObjectiveCCommon

Included in:
ObjectiveC, ObjectiveCpp
Defined in:
lib/rouge/lexers/objective_c/common.rb

Instance Method Summary collapse

Instance Method Details

#at_builtinsObject



15
16
17
# File 'lib/rouge/lexers/objective_c/common.rb', line 15

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

#at_keywordsObject



7
8
9
10
11
12
13
# File 'lib/rouge/lexers/objective_c/common.rb', line 7

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

#builtinsObject



19
20
21
# File 'lib/rouge/lexers/objective_c/common.rb', line 19

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