blob: 21606922b308e1576a9a5c397f466c24475e4ff1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# -*- coding: utf-8 -*- #
# frozen_string_literal: true
module Rouge
module Lexers
load_lexer 'cpp.rb'
load_lexer 'objective_c/common.rb'
class ObjectiveCpp < Cpp
extend ObjectiveCCommon
tag 'objective_cpp'
title "Objective-C++"
desc 'an extension of C++ uncommonly used to write Apple software'
aliases 'objcpp', 'obj-cpp', 'obj_cpp', 'objectivecpp',
'objc++', 'obj-c++', 'obj_c++', 'objectivec++'
filenames '*.mm', '*.h'
mimetypes 'text/x-objective-c++', 'application/x-objective-c++'
prepend :statements do
rule %r/(\.)(class)/ do
groups(Operator, Name::Builtin::Pseudo)
end
rule %r/(@selector)(\()(class)(\))/ do
groups(Keyword, Punctuation, Name::Builtin::Pseudo, Punctuation)
end
end
end
end
end
|