l0bsterssg

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

c.js (583B)


      1 /*
      2 Language: C
      3 Category: common, system
      4 Website: https://en.wikipedia.org/wiki/C_(programming_language)
      5 Requires: c-like.js
      6 */
      7 
      8 /** @type LanguageFn */
      9 function c(hljs) {
     10   var lang = hljs.requireLanguage('c-like').rawDefinition();
     11   // Until C is actually different than C++ there is no reason to auto-detect C
     12   // as it's own language since it would just fail auto-detect testing or
     13   // simply match with C++.
     14   //
     15   // See further comments in c-like.js.
     16 
     17   // lang.disableAutodetect = false;
     18   lang.name = 'C';
     19   lang.aliases = ['c', 'h'];
     20   return lang;
     21 }
     22 
     23 module.exports = c;