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

gdformat: support raw string literals (r-strings) #257

Closed
Arrow-x opened this issue Dec 1, 2023 · 1 comment
Closed

gdformat: support raw string literals (r-strings) #257

Arrow-x opened this issue Dec 1, 2023 · 1 comment
Labels
bug Something isn't working formatter parser

Comments

@Arrow-x
Copy link

Arrow-x commented Dec 1, 2023

Formatting this

func test():
	var g = r"\,? ?(i?\(.*?\))"

will through a massive Exception (should I post the full log?)

AttributeError: 'PatternStr' object has no attribute 'raw'

it seems that it doesn't recognize r-string that was added in 74995

@Scony
Copy link
Owner

Scony commented Dec 1, 2023

Correct, I've found out about Godot's support for raw strings yesterday - from release notes. It's not supported yet.

@Scony Scony added bug Something isn't working formatter parser labels Dec 1, 2023
@Scony Scony closed this as completed in 9a4ab51 Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working formatter parser
Projects
None yet
Development

No branches or pull requests

2 participants