Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Commit 1b542ae

Browse files
committed
enhance auto-closing pairs and auto-surrounding pairs
1 parent d80a0bc commit 1b542ae

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/language-configuration.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,27 @@ module.exports = {
3131
],
3232
autoClosingPairs: [
3333
['{', '}'],
34-
['{{', '}}'],
34+
['{{ ', '}}'],
35+
['{{-', '-}}'],
36+
['{{- ', ' -}}'],
3537
['{%', '%}'],
38+
['{% ', ' %}'],
39+
['{%-', '-%}'],
40+
['{%- ', ' -%}'],
3641
['[', ']'],
3742
['(', ')'],
3843
['"', '"'],
3944
["'", "'"],
4045
['<', '>'],
46+
['comment %} ', ' '],
47+
['comment -%} ', ' '],
48+
['comment%} ', ' '],
49+
['comment-%} ', ' '],
4150
],
4251
autoCloseBefore: '%-:.,=}])>\'"` \n\t',
4352
surroundingPairs: [
53+
[' ', ' '],
54+
['%', '%'],
4455
['-', '-'],
4556
['<', '>'],
4657
['{', '}'],

0 commit comments

Comments
 (0)