Skip to content

v75 compiler breaks 1.69 code

pscythepscythe Member Posts: 116
edited June 2018 in Builders - Scripting
This string "/\/\" worked fine with v74 compiler but the v75 won't accept it as it sees as an unterminated string due to the new \" escapes. But "/\/\\" doesn't work either, as it doesn't understand "\\" escapes. So how does one get a '\' to be the last character in a string without resolving to string manipulation code?

I could get "/\/\ " to compile due to the extra space but what \ escape codes does the compiler understand?

Comments

  • Sylvus_MoonbowSylvus_Moonbow Member Posts: 1,085
    case 12: return GetStringLeft("/\/\ ", 4);
  • pscythepscythe Member Posts: 116

    case 12: return GetStringLeft("/\/\ ", 4);

    yes that would work, but I was hoping for something more sensible like a \\ to escape the \ itself. :smile:
  • pscythepscythe Member Posts: 116
    From the Build 8177 release notes:

    * Script Compiler: We now allow escaping backslashes (“\\”).

Sign In or Register to comment.