Skip to content
Permalink
Browse files

Ignore keywords again when checking bare strings

  • Loading branch information
PseudoKnight committed Nov 4, 2019
1 parent e9735c8 commit 444167e76cafa74912d416ecb0dae207dfb7d436
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/laytonsmith/core/MethodScriptCompiler.java
@@ -1786,7 +1786,7 @@ public static ParseTree compile(TokenStream stream, Environment environment,
private static void checkLinearComponents(ParseTree tree, Environment env,
Set<ConfigCompileException> compilerErrors) {
for(ParseTree m : tree.getAllNodes()) {
if(m.getData().isInstanceOf(CBareString.TYPE)) {
if(m.getData() instanceof CBareString && !(m.getData() instanceof CKeyword)) {
if(m.getFileOptions().isStrict()) {
compilerErrors.add(new ConfigCompileException("Use of bare strings in strict mode is not"
+ " allowed.", m.getTarget()));

0 comments on commit 444167e

Please sign in to comment.
You can’t perform that action at this time.