Skip to content

Commit

Permalink
Allow jinja brace autocompletion (#593)
Browse files Browse the repository at this point in the history
*  Add support to auto complete jinja brace
   for `{%` and `{#` combinations
  • Loading branch information
ganeshrn authored Aug 17, 2022
1 parent f74d799 commit b519254
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ansible-language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
["(", ")"],
["\"", "\""],
["'", "'"],
["{{ ", " "] // curly braces are already auto-closed, this adds space at the end if one is added at the beginning
["{{ ", " "], // curly braces are already auto-closed, this adds space at the end if one is added at the beginning
["{#", "#}"],
["{%", "%}"]
],
// added `'` and `"` -> in Ansible this pattern is extremely common:
// `"{{ jinja_expression }}"`
Expand Down

0 comments on commit b519254

Please sign in to comment.