Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird HMScript Quoting #82

Open
helje5 opened this issue Aug 3, 2018 · 4 comments
Open

Weird HMScript Quoting #82

helje5 opened this issue Aug 3, 2018 · 4 comments

Comments

@helje5
Copy link
Contributor

helje5 commented Aug 3, 2018

Maybe that is intentional (if so, is it documented somewhere?) - some scripts seem to use it like this, but the backslash quoting in HMScript seems broken:

string q2 = "\\"";
WriteLine("S2:" # q2);

string q3 = "\"";
WriteLine("S3:" # q3);

Gives:

S2:\"
S3:"

"\\"" should be parsed as "\"" and subsequently result in a syntax error. But for some reason Rega still things that \ escaping is on for the following " (even though the escaping itself got escaped :-) )

@jens-maus
Copy link

This is absolutely intentional and not a bug!

@helje5
Copy link
Contributor Author

helje5 commented Aug 3, 2018

So how would I write a single backslash?:

Write("\\");

Doesn't fly. I mean it is obvious that this is a bug, but I suppose fixing it today would break too much stuff today.
So feel free to close.

@jens-maus
Copy link

After having rethought and tested this thing I do feel that this is actually a bug that should be squashed... So working on it.

@jens-maus
Copy link

The problem should be fixed starting with ReGaHss R1.00.0388.0204 which had been recently release as a beta version (see 9e25264)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants