You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if line =~ '\c^\s*\(CLASS\|CLUSTER\|FEATURE\|JOIN\|LABEL\|LAYER\|LEGEND\|METADATA\|OUTPUTFORMAT\|PROJECTION\|QUERYMAP\|REFERENCE\|SCALEBAR\|STYLE\|SYMBOL\|VALIDATION\|WEB\)\s*\(#.*\)*$'
return "a1"
endif
" if it's an END, unfold one level
if line =~ '\c^\s*END\s*\(#.*\)*$'
return "s1"
endif
" otherwise...
return "="
endfunction
function! MapFileFoldText()
let line = getline(v:foldstart)
let line3 = substitute(line, '\t', ' ', 'g')
let line2 = substitute(line3, '^\( *\)', '&+ ', '')
let i = v:foldstart
let name = ""
while i < v:foldend
let iline = getline(i)
if iline =~ '\c^\s*\(NAME\|EXPRESSION\|GROUP\)\s\s*'
let name = substitute(iline, '\c\s*\(NAME\|EXPRESSION\|GROUP\)\s*', '', '')