mirror of
https://github.com/lepture/vim-jinja.git
synced 2025-11-10 04:13:50 -05:00
Add macro to the blocktags
This commit is contained in:
@@ -53,7 +53,7 @@ function! GetDjangoIndent(...)
|
|||||||
let tagstart = '.*' . '{%-\?\s*'
|
let tagstart = '.*' . '{%-\?\s*'
|
||||||
let tagend = '.*-\?%}' . '.*'
|
let tagend = '.*-\?%}' . '.*'
|
||||||
|
|
||||||
let blocktags = '\(block\|for\|if\|with\|autoescape\|comment\|filter\|spaceless\)'
|
let blocktags = '\(block\|for\|if\|with\|autoescape\|comment\|filter\|spaceless\|macro\)'
|
||||||
let midtags = '\(empty\|else\|elif\)'
|
let midtags = '\(empty\|else\|elif\)'
|
||||||
|
|
||||||
let pnb_blockstart = pnb =~# tagstart . blocktags . tagend
|
let pnb_blockstart = pnb =~# tagstart . blocktags . tagend
|
||||||
|
|||||||
Reference in New Issue
Block a user