@@ -11,10 +11,10 @@ import { compileKeywords } from "./compile_keywords.js";
11
11
* Given the raw result of a language definition (Language), compiles this so
12
12
* that it is ready for highlighting code.
13
13
* @param {Language } language
14
- * @param {{plugins: HLJSPlugin[]] } } opts
14
+ * @param {{plugins: HLJSPlugin[] } } opts
15
15
* @returns {CompiledLanguage }
16
16
*/
17
- export function compileLanguage ( language , { plugins} ) {
17
+ export function compileLanguage ( language , { plugins } ) {
18
18
/**
19
19
* Builds a regex with the case sensativility of the current language
20
20
*
@@ -289,7 +289,7 @@ export function compileLanguage(language, {plugins}) {
289
289
] . forEach ( ext => ext ( mode , parent ) ) ;
290
290
291
291
plugins . forEach ( plugin => plugin [ "beforeCompile:early" ] && plugin [ "beforeCompile:early" ] ( mode , parent ) ) ;
292
- language . extensions . forEach ( ext => ext ( mode , parent ) ) ;
292
+ language . compilerExtensions . forEach ( ext => ext ( mode , parent ) ) ;
293
293
plugins . forEach ( plugin => plugin [ "beforeCompile:late" ] && plugin [ "beforeCompile:late" ] ( mode , parent ) ) ;
294
294
295
295
// __beforeBegin is considered private API, internal use only
@@ -352,7 +352,7 @@ export function compileLanguage(language, {plugins}) {
352
352
return cmode ;
353
353
}
354
354
355
- if ( ! language . extensions ) language . extensions = [ ] ;
355
+ if ( ! language . compilerExtensions ) language . compilerExtensions = [ ] ;
356
356
357
357
// self is not valid at the top-level
358
358
if ( language . contains && language . contains . includes ( 'self' ) ) {
0 commit comments