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

how to escape quotes in a string? #47

Closed
w1kee opened this issue Jul 31, 2022 · 3 comments
Closed

how to escape quotes in a string? #47

w1kee opened this issue Jul 31, 2022 · 3 comments

Comments

@w1kee
Copy link

w1kee commented Jul 31, 2022

i have some code, that looks like this:

print("something \"something\" something else")

but when i compile i get this error:

Compiling init.wu

wrong: bumped into weird character
     --> ./init.wu
      │
    1 │ print("something \"something\" something else")
      │                             ^
  Finished things in 0ms

how can i fix the code?

@evolbug
Copy link
Contributor

evolbug commented Jul 31, 2022

Weird, that should have worked, I think the delimiter escape might be broken. You can try using ' delimited strings instead, like 'something "something" something else'
' delimited strings aren't a thing, sorry, I'll try and see why this is broken

@evolbug
Copy link
Contributor

evolbug commented Jul 31, 2022

I have pushed a fix for it, the escapes were indeed broken, it should work if you try now

@w1kee
Copy link
Author

w1kee commented Jul 31, 2022

Thanks!

@w1kee w1kee closed this as completed Jul 31, 2022
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