Files
news.gitea.happylizard.me/bin/gems/rouge-4.7.0/lib/rouge/lexers/objective_cpp.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

32 lines
847 B
Ruby

# -*- 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