Skip to content

Commit eb46a45

Browse files
committed
move comments
1 parent 0cb38d6 commit eb46a45

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/mode_compiler.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,9 @@ export function compileLanguage(language, { plugins }) {
319319
throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");
320320
}
321321

322-
keywordPattern = keywordPattern || mode.lexemes || /\w+/;
323-
324322
// `mode.lexemes` was the old standard before we added and now recommend
325323
// using `keywords.$pattern` to pass the keyword pattern
324+
keywordPattern = keywordPattern || mode.lexemes || /\w+/;
326325
cmode.keywordPatternRe = langRe(keywordPattern, true);
327326

328327
if (parent) {

0 commit comments

Comments
 (0)