" Vim syntax file
" Language:    tf (TinyFugue) (local additions for folding only)
" Maintainer:  Christian J. Robinson <heptite@gmail.com>
" Last Change: 2004 Sep 03

" Place in: <runtime>/after/syntax/tf.vim

"if exists("b:current_syntax_local")
"	finish
"endif

" Unset tf_fold if it set but vim doesn't support it.
if version < 600 && exists("tf_fold")
  unlet tf_fold
endif

if exists("tf_fold") && g:tf_fold != 0
	"syn region tfFold start==^/def .\+\\$= end==^\S*$= fold transparent extend excludenl
	if exists("tf_fold_comments") && g:tf_fold_comments != 0
		syn region tfFold start==^\(;\s\=\)\=/\(def\|set\) .\+\\$= end==[^\\]$= fold transparent excludenl keepend
	else
		syn region tfFold start==^/\(def\|set\) .\+\\$= end==[^\\]$= fold transparent excludenl keepend
	endif
	syn sync fromstart
	setlocal foldmethod=syntax foldminlines=3
endif


"let b:current_syntax_local = b:current_syntax