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

Quote conversion isn't right for some escaped quotes #274

Open
doug1234 opened this issue Feb 20, 2023 · 0 comments
Open

Quote conversion isn't right for some escaped quotes #274

doug1234 opened this issue Feb 20, 2023 · 0 comments

Comments

@doug1234
Copy link
Contributor

doug1234 commented Feb 20, 2023

The following incorrect output is produced:

single_quote_to_double_quote: true

input:
local escapedQuote = '\"'

output (invalid lua):
local escapedQuote = "\\""

should be:
local escapedQuote = "\""

double_quote_to_single_quote: true

input:
local escapedQuote = "\'"

output (invalid lua):
local escapedQuote = '\\''

should be:
local escapedQuote = '\''

doug1234 added a commit to doug1234/LuaFormatter that referenced this issue Feb 20, 2023
Koihik added a commit that referenced this issue Feb 21, 2023
Fix incorrect escape character handling for issue #274
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

1 participant