-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Labels
enhancementNew feature or requestNew feature or requestexternalThis issue relies on an external factorThis issue relies on an external factorluauFormatting related to LuauFormatting related to Luau
Description
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.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestexternalThis issue relies on an external factorThis issue relies on an external factorluauFormatting related to LuauFormatting related to Luau