diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-21 10:31:09 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-21 10:31:09 +0000 |
| commit | af6bb061ff447f860c514b60202c3192ceec952b (patch) | |
| tree | 09cf21eb75b8d7f6b1771c38765341836a2b890c /plugin/test/indentation.test.js | |
| parent | 9939ebe7f0ec25b042c9d83ed651cde0e2ea3a30 (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.js | 7 |
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]); +}); |
