diff options
Diffstat (limited to 'runtime/autoload/dist/ft.vim')
-rw-r--r-- | runtime/autoload/dist/ft.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index bf9e32e783..50b4c3ef21 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -405,12 +405,12 @@ enddef # Distinguish between HTML, XHTML and Django export def FThtml() var n = 1 - while n < 10 && n <= line("$") + while n < 40 && n <= line("$") if getline(n) =~ '\<DTD\s\+XHTML\s' setf xhtml return endif - if getline(n) =~ '{%\s*\(extends\|block\|load\)\>\|{#\s\+' + if getline(n) =~ '{%\s*\(autoescape\|block\|comment\|csrf_token\|cycle\|debug\|extends\|filter\|firstof\|for\|if\|ifchanged\|include\|load\|lorem\|now\|query_string\|regroup\|resetcycle\|spaceless\|templatetag\|url\|verbatim\|widthratio\|with\)\>\|{#\s\+' setf htmldjango return endif |