l0bsterssg

node.js static responsive blog post generator
Log | Files | Refs | README

cpp.js (396B)


      1 /*
      2 Language: C++
      3 Category: common, system
      4 Website: https://isocpp.org
      5 Requires: c-like.js
      6 */
      7 
      8 /** @type LanguageFn */
      9 function cpp(hljs) {
     10   var lang = hljs.requireLanguage('c-like').rawDefinition();
     11   // return auto-detection back on
     12   lang.disableAutodetect = false;
     13   lang.name = 'C++';
     14   lang.aliases = ['cc', 'c++', 'h++', 'hpp', 'hh', 'hxx', 'cxx'];
     15   return lang;
     16 }
     17 
     18 module.exports = cpp;