Skip to content

Commit 982b26f

Browse files
committed
Disable missing semi-colon exceptions
1 parent 91eaaa0 commit 982b26f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/com/laytonsmith/core/MethodScriptCompiler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,14 +2254,14 @@ public static void rewriteAutoconcats(ParseTree root, Environment env,
22542254
}
22552255

22562256
private static void doMissingSemicolonError(Target target, Set<ConfigCompileException> exceptions) {
2257-
String message = "Semicolon ';' expected.";
2257+
// String message = "Semicolon ';' expected.";
22582258
// if(MSVersion.LATEST.lte(new SimpleVersion(3, 3, 6))) {
22592259
// // Warning
22602260
// message += " This will be an error in the next version.";
22612261
// env.getEnv(CompilerEnvironment.class).addFutureErrorCompilerWarning(message, target);
22622262
// } else {
2263-
// Error
2264-
exceptions.add(new ConfigCompileException(message, target));
2263+
// // Error
2264+
// exceptions.add(new ConfigCompileException(message, target));
22652265
// }
22662266
}
22672267

src/test/java/com/laytonsmith/core/OptimizationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ public void testSconcatWithNonStatement() throws Exception {
596596
optimize("int @i = 0; int @j = 0"));
597597
}
598598

599-
@Test(expected = ConfigCompileException.class)
599+
// @Test(expected = ConfigCompileException.class)
600600
public void testPartialStatementsInStrictMSA() throws Exception {
601601
assertEquals("__statements__(assign(ms.lang.int,@i,0),assign(ms.lang.string,@s,'asdf'))",
602602
optimize("<! strict >\n"
@@ -606,7 +606,7 @@ public void testPartialStatementsInStrictMSA() throws Exception {
606606
+ "<<<\n", false));
607607
}
608608

609-
@Test(expected = ConfigCompileException.class)
609+
// @Test(expected = ConfigCompileException.class)
610610
public void testPartialStatementsInStrictMSA2() throws Exception {
611611
assertEquals("__statements__(if(dyn(1),__statements__(assign(ms.lang.int,@i,1),msg(@i))))",
612612
optimize("<! strict >\n"
@@ -618,7 +618,7 @@ public void testPartialStatementsInStrictMSA2() throws Exception {
618618
+ "<<<\n", false));
619619
}
620620

621-
@Test(expected = ConfigCompileException.class)
621+
// @Test(expected = ConfigCompileException.class)
622622
public void testPartialStatementsInStrict() throws Exception {
623623
assertEquals("__statements__(assign(ms.lang.int,@i,1),msg(@i),msg(@i))", optimize("<! strict >\n"
624624
+ "int @i = 1\n"

0 commit comments

Comments
 (0)