c.js 568 B

1234567891011121314151617181920
  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. export default function (hljs) {
  8. var lang = hljs.getLanguage('c-like').rawDefinition();
  9. // Until C is actually different than C++ there is no reason to auto-detect C
  10. // as it's own language since it would just fail auto-detect testing or
  11. // simply match with C++.
  12. //
  13. // See further comments in c-like.js.
  14. // lang.disableAutodetect = false;
  15. lang.name = 'C';
  16. lang.aliases = ['c', 'h'];
  17. return lang;
  18. }