class Rouge::Lexers::Cpp

Public Class Methods

keywords() click to toggle source
Calls superclass method Rouge::Lexers::C.keywords
# File lib/rouge/lexers/cpp.rb, line 21
def self.keywords
  @keywords ||= super + Set.new(%w(
    asm auto catch char8_t concept
    consteval constexpr constinit const_cast co_await co_return co_yield
    delete dynamic_cast explicit export friend
    mutable namespace new operator private protected public
    reinterpret_cast requires restrict size_of static_cast this throw throws
    typeid typename using virtual final override import module

    alignas alignof decltype noexcept static_assert
    thread_local try
  ))
end
keywords_type() click to toggle source
Calls superclass method Rouge::Lexers::C.keywords_type
# File lib/rouge/lexers/cpp.rb, line 35
def self.keywords_type
  @keywords_type ||= super + Set.new(%w(
    bool
  ))
end
reserved() click to toggle source
Calls superclass method Rouge::Lexers::C.reserved
# File lib/rouge/lexers/cpp.rb, line 41
def self.reserved
  @reserved ||= super + Set.new(%w(
    __virtual_inheritance __uuidof __super __single_inheritance
    __multiple_inheritance __interface __event
  ))
end