zhangwei
2024-09-23 208b5a9f559dd2c7298759fdfe37d07c926cbd4d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 本文件由FirstUI授权予四川政采招投标咨询有限公司(会员ID:16  3,营业执照号:9   15  1  0 1  31332 0     061 93K)专用,请尊重知识产权,勿私下传播,违者追究法律责任。
/*
Language: C
Category: common, system
Website: https://en.wikipedia.org/wiki/C_(programming_language)
 
Modified by: firstui
organization: FirstUI(https://www.firstui.cn/)
*/
 
import cLike from './c-like.js';
 
/** @type LanguageFn */
export default function(hljs) {
  const lang = cLike(hljs);
  // Until C is actually different than C++ there is no reason to auto-detect C
  // as it's own language since it would just fail auto-detect testing or
  // simply match with C++.
  //
  // See further comments in c-like.js.
 
  // lang.disableAutodetect = false;
  lang.name = 'C';
  lang.aliases = ['c', 'h'];
  return lang;
}