aboutsummaryrefslogtreecommitdiff
path: root/plugin/test/indentation.test.js
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-21 10:31:09 +0000
committer_ov4 <ov4@ov4.org>2026-10-21 10:31:09 +0000
commitaf6bb061ff447f860c514b60202c3192ceec952b (patch)
tree09cf21eb75b8d7f6b1771c38765341836a2b890c /plugin/test/indentation.test.js
parent9939ebe7f0ec25b042c9d83ed651cde0e2ea3a30 (diff)
fix(plugin): recognize literal escapes and C string suffixes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'plugin/test/indentation.test.js')
-rw-r--r--plugin/test/indentation.test.js7
1 files changed, 7 insertions, 0 deletions
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]);
+});