patch 9.1.0635: filetype: SuperHTML template files not recognized
Problem: filetype: SuperHTML template files not recognized
Solution: Update the filetype detection code to detect '*.shtml' either
as HTML (Server Side Includes) or SuperHTML (template files)
(EliSauder)
related: #15355
related: #15367
Signed-off-by: EliSauder <24995216+EliSauder@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
13032a49b7
commit
e57c9a19ed
6
runtime/autoload/dist/ft.vim
vendored
6
runtime/autoload/dist/ft.vim
vendored
@ -421,7 +421,6 @@ export def FThtml()
|
||||
setf htmlangular
|
||||
return
|
||||
endif
|
||||
|
||||
# Check for XHTML
|
||||
if getline(n) =~ '\<DTD\s\+XHTML\s'
|
||||
setf xhtml
|
||||
@ -432,6 +431,11 @@ export def FThtml()
|
||||
setf htmldjango
|
||||
return
|
||||
endif
|
||||
# Check for SuperHTML
|
||||
if getline(n) =~ '<extend\|<super>'
|
||||
setf superhtml
|
||||
return
|
||||
endif
|
||||
n += 1
|
||||
endwhile
|
||||
setf FALLBACK html
|
||||
|
||||
Reference in New Issue
Block a user