adding new stuff
This commit is contained in:
parent
f84d7183aa
commit
9ef8a96f9a
1580 changed files with 0 additions and 0 deletions
18
plugins/bundle/xptemplate/autoload/xpt/ng.vim
Normal file
18
plugins/bundle/xptemplate/autoload/xpt/ng.vim
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue