branch: elpa/jinja2-mode
commit 9a878758336e093614606621a77e35cf7f9ff595
Author: Florian Mounier <[email protected]>
Commit: Florian Mounier <[email protected]>
Handle elif
---
jinja2.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/jinja2.el b/jinja2.el
index 1ee9bab6f9..ec8e20dfe6 100644
--- a/jinja2.el
+++ b/jinja2.el
@@ -38,7 +38,7 @@
(defconst jinja2-font-lock-indenting-keywords
'(
- "if" "else" "for" "block" "filter" "with"
+ "if" "else" "elif" "for" "block" "filter" "with"
"raw" "macro" "autoescape" "trans" "call"
;; Hydra specific
"auth" "showonmatch" "errorproof"))
@@ -177,7 +177,7 @@
(if (bobp) ; Check begining of buffer
(indent-line-to (sgml-indent-line-num))
(let ((not-indented t) (indent-width 2) cur-indent (html-indentation
(sgml-indent-line-num)))
- (if (looking-at "^[ \t]*{% *e\\(nd\\|lse\\)") ; Check close tag
+ (if (looking-at "^[ \t]*{% *e\\(nd\\|lse\\|lif\\)") ; Check close tag
(progn
(save-excursion
(forward-line -1)