From 9325f8d2b1e1647031d1327e7fbfd38f6b6e666b Mon Sep 17 00:00:00 2001 From: andyexeter Date: Fri, 6 Mar 2026 12:11:37 +0000 Subject: [PATCH] Rename liquidSingleQuote option to twigSingleQuote --- playground/assets/playground.js | 2 +- playground/index.html | 6 +- src/index.ts | 12 ++- src/printer/print/liquid.ts | 15 ++-- src/printer/printer-liquid-html.ts | 4 +- src/printer/utils/string.ts | 8 +- src/types.ts | 3 +- src/utils.ts | 31 +++++++ test/liquid-drop-string/fixed.liquid | 2 +- test/liquid-drop-string/index.liquid | 2 +- test/liquid-drop-variable-lookup/fixed.liquid | 2 +- test/liquid-drop-variable-lookup/index.liquid | 2 +- test/liquid-tag-form/fixed.liquid | 4 +- test/liquid-tag-form/index.liquid | 4 +- test/twig-function-quotes/fixed.liquid | 8 +- test/twig-function-quotes/index.liquid | 8 +- test/utils.spec.ts | 81 +++++++++++++++++++ 17 files changed, 159 insertions(+), 35 deletions(-) create mode 100644 test/utils.spec.ts diff --git a/playground/assets/playground.js b/playground/assets/playground.js index 9d345f3d..2b31aecc 100644 --- a/playground/assets/playground.js +++ b/playground/assets/playground.js @@ -3,7 +3,7 @@ const options = { }; const numInputs = ['printWidth']; -const boolInputs = ['liquidSingleQuote', 'singleQuote']; +const boolInputs = ['twigSingleQuote', 'singleQuote']; const selectInputs = ['htmlWhitespaceSensitivity']; const waitFor = (pred) => { diff --git a/playground/index.html b/playground/index.html index c8f54f45..9e8fb248 100644 --- a/playground/index.html +++ b/playground/index.html @@ -107,9 +107,9 @@

-