Skip to content

Commit

Permalink
Re-add accidentally removed conditional
Browse files Browse the repository at this point in the history
Fixup for previous commit.
  • Loading branch information
Pieter12345 committed Feb 1, 2024
1 parent df05b89 commit d1eb45a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/laytonsmith/core/MethodScriptCompiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -2945,6 +2945,11 @@ private static void processEarlyKeywords(TokenStream stream, Environment env, Se
int ind = it.nextIndex();
token = it.next();

// Some keywords look like function names, we need those too.
if(token.type != TType.KEYWORD && token.type != TType.FUNC_NAME) {
continue;
}

EarlyBindingKeyword keyword = KeywordList.getEarlyBindingKeywordByName(token.val());
if(keyword == null) {
continue;
Expand Down

0 comments on commit d1eb45a

Please sign in to comment.