StyLua icon indicating copy to clipboard operation
StyLua copied to clipboard

`quote_style` should include an `ignore` option

Open snowcliffx opened this issue 4 months ago • 1 comments

With the introduction of FFlagDebugLuauStringSingletonBasedOnQuotes in luau 0.688, double-quotes and single-quotes now have different functionalities in type checking:

"...simplifies the singleton inference model a lot. With this flag enabled, the type of a string literal will be string whenever it uses double-quotes or backticks for interpolation, and the corresponding singleton type (e.g. 'foo' for 'foo') when it uses a single-quote."

Ever since I have incorporated this into my newest code base, I have had to deal with the annoying problem of StyLua overriding all of my quotes with a single quote type (which I do not want). I want to be able to switch between double and single quotes based on the type context.

snowcliffx avatar Sep 06 '25 22:09 snowcliffx

If Luau goes ahead with this feature, I will add an input option. But only when it's confirmed to be formally added. It is still unclear whether they are going to move forward with this design choice

JohnnyMorganz avatar Sep 13 '25 11:09 JohnnyMorganz