parent
3dbac3a8b7
commit
93ca39202c
@ -11,12 +11,12 @@ elseif exists("b:current_syntax")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
"TODO do nothing if ...? (?)
|
"TODO do nothing if ...? (?)
|
||||||
let s:starttime = reltime() " start the clock
|
let g:starttime = reltime() " start the clock
|
||||||
if VimwikiGet('maxhi')
|
if VimwikiGet('maxhi')
|
||||||
let b:existing_wikifiles = vimwiki#base#get_links('*'.VimwikiGet('ext'))
|
let b:existing_wikifiles = vimwiki#base#get_links('*'.VimwikiGet('ext'))
|
||||||
let b:existing_wikidirs = vimwiki#base#get_links('*/')
|
let b:existing_wikidirs = vimwiki#base#get_links('*/')
|
||||||
endif
|
endif
|
||||||
let s:timescans = vimwiki#u#time(s:starttime) "XXX
|
let s:timescans = vimwiki#u#time(g:starttime) "XXX
|
||||||
"let b:xxx = 1
|
"let b:xxx = 1
|
||||||
"TODO ? update wikilink syntax group here if really needed (?) for :e and such
|
"TODO ? update wikilink syntax group here if really needed (?) for :e and such
|
||||||
"if VimwikiGet('maxhi')
|
"if VimwikiGet('maxhi')
|
||||||
@ -46,7 +46,7 @@ let g:vimwiki_rxWeblinkUrl = g:vimwiki_rxWebProtocols .
|
|||||||
|
|
||||||
call vimwiki#u#reload_regexes()
|
call vimwiki#u#reload_regexes()
|
||||||
|
|
||||||
let s:time0 = vimwiki#u#time(s:starttime) "XXX
|
let s:time0 = vimwiki#u#time(g:starttime) "XXX
|
||||||
|
|
||||||
" LINKS: setup of larger regexes {{{
|
" LINKS: setup of larger regexes {{{
|
||||||
|
|
||||||
@ -231,16 +231,16 @@ if VimwikiGet('maxhi')
|
|||||||
call s:add_target_syntax_OFF(g:vimwiki_rxWikiIncl)
|
call s:add_target_syntax_OFF(g:vimwiki_rxWikiIncl)
|
||||||
|
|
||||||
" Subsequently, links verified on vimwiki's path are highlighted as existing
|
" Subsequently, links verified on vimwiki's path are highlighted as existing
|
||||||
let s:time01 = vimwiki#u#time(s:starttime) "XXX
|
let s:time01 = vimwiki#u#time(g:starttime) "XXX
|
||||||
call s:highlight_existing_links()
|
call s:highlight_existing_links()
|
||||||
let s:time02 = vimwiki#u#time(s:starttime) "XXX
|
let s:time02 = vimwiki#u#time(g:starttime) "XXX
|
||||||
else
|
else
|
||||||
let s:time01 = vimwiki#u#time(s:starttime) "XXX
|
let s:time01 = vimwiki#u#time(g:starttime) "XXX
|
||||||
" Wikilink
|
" Wikilink
|
||||||
call s:add_target_syntax_ON(g:vimwiki_rxWikiLink, 'VimwikiLink')
|
call s:add_target_syntax_ON(g:vimwiki_rxWikiLink, 'VimwikiLink')
|
||||||
" WikiIncl
|
" WikiIncl
|
||||||
call s:add_target_syntax_ON(g:vimwiki_rxWikiIncl, 'VimwikiLink')
|
call s:add_target_syntax_ON(g:vimwiki_rxWikiIncl, 'VimwikiLink')
|
||||||
let s:time02 = vimwiki#u#time(s:starttime) "XXX
|
let s:time02 = vimwiki#u#time(g:starttime) "XXX
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Weblink
|
" Weblink
|
||||||
@ -598,5 +598,5 @@ call vimwiki#base#nested_syntax('tex',
|
|||||||
|
|
||||||
syntax spell toplevel
|
syntax spell toplevel
|
||||||
|
|
||||||
let s:timeend = vimwiki#u#time(s:starttime) "XXX
|
let s:timeend = vimwiki#u#time(g:starttime) "XXX
|
||||||
call VimwikiLog_extend('timing',['syntax:scans',s:timescans],['syntax:regexloaded',s:time0],['syntax:beforeHLexisting',s:time01],['syntax:afterHLexisting',s:time02],['syntax:end',s:timeend])
|
call VimwikiLog_extend('timing',['syntax:scans',s:timescans],['syntax:regexloaded',s:time0],['syntax:beforeHLexisting',s:time01],['syntax:afterHLexisting',s:time02],['syntax:end',s:timeend])
|
||||||
|
@ -272,14 +272,14 @@ if VimwikiGet('maxhi')
|
|||||||
call s:add_target_syntax_OFF(g:vimwiki_rxWikiLink1, 'VimwikiWikiLink1')
|
call s:add_target_syntax_OFF(g:vimwiki_rxWikiLink1, 'VimwikiWikiLink1')
|
||||||
|
|
||||||
" Subsequently, links verified on vimwiki's path are highlighted as existing
|
" Subsequently, links verified on vimwiki's path are highlighted as existing
|
||||||
let s:time01 = vimwiki#u#time(starttime) "XXX
|
let s:time01 = vimwiki#u#time(g:starttime) "XXX
|
||||||
call s:highlight_existing_links()
|
call s:highlight_existing_links()
|
||||||
let s:time02 = vimwiki#u#time(starttime) "XXX
|
let s:time02 = vimwiki#u#time(g:starttime) "XXX
|
||||||
else
|
else
|
||||||
let s:time01 = vimwiki#u#time(starttime) "XXX
|
let s:time01 = vimwiki#u#time(g:starttime) "XXX
|
||||||
" Wikilink
|
" Wikilink
|
||||||
call s:add_target_syntax_ON(g:vimwiki_rxWikiLink1, 'VimwikiWikiLink1')
|
call s:add_target_syntax_ON(g:vimwiki_rxWikiLink1, 'VimwikiWikiLink1')
|
||||||
let s:time02 = vimwiki#u#time(starttime) "XXX
|
let s:time02 = vimwiki#u#time(g:starttime) "XXX
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Weblink
|
" Weblink
|
||||||
|
Loading…
Reference in New Issue
Block a user