aboutsummaryrefslogtreecommitdiff
path: root/plugin/test/indentation.test.js
diff options
context:
space:
mode:
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]);
+});