diff --git a/common/src/main/java/li/cil/tis3d/common/module/execution/compiler/Compiler.java b/common/src/main/java/li/cil/tis3d/common/module/execution/compiler/Compiler.java index 0c615fca..997a58aa 100644 --- a/common/src/main/java/li/cil/tis3d/common/module/execution/compiler/Compiler.java +++ b/common/src/main/java/li/cil/tis3d/common/module/execution/compiler/Compiler.java @@ -186,7 +186,7 @@ private static void parseInstruction(final Matcher matcher, final MachineState s // --------------------------------------------------------------------- // private static final Pattern PATTERN_COMMENT = Pattern.compile("#.*$"); - private static final Pattern PATTERN_DEFINE = Pattern.compile("#DEFINE\\s+(?\\S+)\\s*(?\\S+)\\s*$"); + private static final Pattern PATTERN_DEFINE = Pattern.compile("(#DEF|#DEFINE)\\s+(?\\S+)\\s*(?\\S+)\\s*(#.*)?$"); private static final Pattern PATTERN_UNDEFINE = Pattern.compile("#UNDEF\\s+(?\\S+)\\s*$"); private static final Pattern PATTERN_LINE = Pattern.compile("^\\s*(?:(?