From af6bb061ff447f860c514b60202c3192ceec952b Mon Sep 17 00:00:00 2001 From: _ov4 Date: Wed, 21 Oct 2026 10:31:09 +0000 Subject: fix(plugin): recognize literal escapes and C string suffixes Co-Authored-By: Claude Opus 5.5 --- plugin/test/indentation.test.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugin/test/indentation.test.js') diff --git a/plugin/test/indentation.test.js b/plugin/test/indentation.test.js index 1a9d91e..9140ed3 100644 --- a/plugin/test/indentation.test.js +++ b/plugin/test/indentation.test.js @@ -75,3 +75,10 @@ test('blank lines are empty when formatted and indented at the caret after Enter assert.deepEqual(indentationEdits(lines, line, line, true), [{ line, length: 3, text: '\t' }]); } }); + +test('escaped quotes keep block keywords inside literals masked', () => { + assert.deepEqual(lineDepths([ + String.raw`IF Text = "quoted \" THEN"`, + 'THEN', String.raw`OUTPUT "escaped \" ENDIF //"`, 'ENDIF' + ]), [0, 0, 1, 0]); +}); -- cgit v1.3.1-4-g156e