File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ Requires: c-like.js
7
7
8
8
/** @type LanguageFn */
9
9
export default function ( hljs ) {
10
-
11
- var lang = hljs . getLanguage ( 'c-like' ) . rawDefinition ( ) ;
10
+ var lang = hljs . requireLanguage ( 'c-like' ) . rawDefinition ( ) ;
12
11
// Until C is actually different than C++ there is no reason to auto-detect C
13
12
// as it's own language since it would just fail auto-detect testing or
14
13
// simply match with C++.
@@ -19,5 +18,4 @@ export default function(hljs) {
19
18
lang . name = 'C' ;
20
19
lang . aliases = [ 'c' , 'h' ] ;
21
20
return lang ;
22
-
23
21
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Requires: c-like.js
7
7
8
8
/** @type LanguageFn */
9
9
export default function ( hljs ) {
10
- var lang = hljs . getLanguage ( 'c-like' ) . rawDefinition ( ) ;
10
+ var lang = hljs . requireLanguage ( 'c-like' ) . rawDefinition ( ) ;
11
11
// return auto-detection back on
12
12
lang . disableAutodetect = false ;
13
13
lang . name = 'C++' ;
You can’t perform that action at this time.
0 commit comments