diff --git a/Content.Tests/DMProject/Tests/Arg/SoftReservedKeyword1.dm b/Content.Tests/DMProject/Tests/Arg/SoftReservedKeyword1.dm index 47250b1169..a9f4533aaa 100644 --- a/Content.Tests/DMProject/Tests/Arg/SoftReservedKeyword1.dm +++ b/Content.Tests/DMProject/Tests/Arg/SoftReservedKeyword1.dm @@ -1,5 +1,8 @@ //COMPILE ERROR OD2000 // NOBYOND + +#pragma SoftReservedKeyword error + var/src = 321 /proc/RunTest() diff --git a/Content.Tests/DMProject/Tests/Arg/SoftReservedKeyword2.dm b/Content.Tests/DMProject/Tests/Arg/SoftReservedKeyword2.dm index 5e92c59b3d..215686f099 100644 --- a/Content.Tests/DMProject/Tests/Arg/SoftReservedKeyword2.dm +++ b/Content.Tests/DMProject/Tests/Arg/SoftReservedKeyword2.dm @@ -1,5 +1,8 @@ //COMPILE ERROR OD2000 // NOBYOND + +#pragma SoftReservedKeyword error + /proc/test(args) return 1 diff --git a/Content.Tests/DMProject/Tests/Arg/SoftReservedKeyword3.dm b/Content.Tests/DMProject/Tests/Arg/SoftReservedKeyword3.dm index 8e833b0fa2..07a2955352 100644 --- a/Content.Tests/DMProject/Tests/Arg/SoftReservedKeyword3.dm +++ b/Content.Tests/DMProject/Tests/Arg/SoftReservedKeyword3.dm @@ -1,5 +1,8 @@ //COMPILE ERROR OD2000 // NOBYOND + +#pragma SoftReservedKeyword error + /proc/RunTest() var/usr = 123 world.log << "fail" diff --git a/DMCompiler/Compiler/CompilerError.cs b/DMCompiler/Compiler/CompilerError.cs index bcd9784a24..cb8704f00e 100644 --- a/DMCompiler/Compiler/CompilerError.cs +++ b/DMCompiler/Compiler/CompilerError.cs @@ -146,7 +146,7 @@ public struct CompilerEmission { {WarningCode.ErrorRecoveryActivated, ErrorLevel.Error}, //2000-2999 - {WarningCode.SoftReservedKeyword, ErrorLevel.Error}, + {WarningCode.SoftReservedKeyword, ErrorLevel.Warning}, {WarningCode.ScopeOperandNamedType, ErrorLevel.Warning}, {WarningCode.DuplicateVariable, ErrorLevel.Warning}, {WarningCode.DuplicateProcDefinition, ErrorLevel.Error},