adding new stuff

This commit is contained in:
ViktorBarzin 2017-07-09 00:22:01 +03:00
parent f84d7183aa
commit 9ef8a96f9a
1580 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,18 @@
if exists( "g:__AL_XPT_NG_VIM__" ) && g:__AL_XPT_NG_VIM__ >= XPT#ver
finish
endif
let g:__AL_XPT_NG_VIM__ = XPT#ver
let s:oldcpo = &cpo
set cpo-=< cpo+=B
let s:priorities = XPT#priorities
fun! xpt#ng#SetFiletypeDetector(funName)
if !exists("b:xptemplateData")
call XPTemplateInit()
endif
let x = b:xptemplateData
let prio = get( x.snipFileScope, 'priority', s:priorities.lang )
if prio <= x.ftdetector.priority
let x.ftdetector = { 'priority' : prio, 'func':function( a:funName ) }
endif
endfunction
let &cpo = s:oldcpo