1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 11:30:28 +01:00

Fix fold marker bug on windows

This commit is contained in:
Jan Larres
2011-03-29 02:16:48 +13:00
parent efcf31ba74
commit c581d048ca
2 changed files with 22 additions and 26 deletions

View File

@@ -86,15 +86,13 @@ if !exists('g:tagbar_usearrows')
endif
if has('multi_byte')
if has('unix') && &encoding == 'utf-8' &&
\ (empty(&termencoding) || &termencoding == 'utf-8')
let s:icon_closed = ''
let s:icon_open = '▼'
elseif (has('win32') || has('win64')) && g:tagbar_usearrows
let s:icon_closed = ''
let s:icon_open = '◢'
endif
if has('multi_byte') && has('unix') && &encoding == 'utf-8' &&
\ (empty(&termencoding) || &termencoding == 'utf-8')
let s:icon_closed = '▶'
let s:icon_open = ''
elseif has('multi_byte') && (has('win32') || has('win64')) && g:tagbar_usearrows
let s:icon_closed = '▷'
let s:icon_open = ''
else
let s:icon_closed = '+'
let s:icon_open = '-'

View File

@@ -9,27 +9,25 @@ if exists("b:current_syntax")
finish
endif
if has('multi_byte')
if has('unix') && &encoding == 'utf-8' &&
\ (empty(&termencoding) || &termencoding == 'utf-8')
syntax match TagbarKind '\([▶▼][-+ ]\)\@<=[^-+: ]\+[^:]\+$'
syntax match TagbarScope '[^-+#▶▼(* ]\+\(\*\? :\)\@='
if has('multi_byte') && has('unix') && &encoding == 'utf-8' &&
\ (empty(&termencoding) || &termencoding == 'utf-8')
syntax match TagbarKind '\([▶▼][-+ ]\)\@<=[^-+: ]\+[^:]\+$'
syntax match TagbarScope '[^-+#▶▼(* ]\+\(\*\? :\)\@='
syntax match TagbarFoldIcon '[▶▼]\([-+# ]\)\@='
syntax match TagbarFoldIcon '[▶▼]\([-+# ]\)\@='
syntax match TagbarAccessPublic '\([▶▼ ]\)\@<=+\([^-+# ]\)\@='
syntax match TagbarAccessProtected '\([▶▼ ]\)\@<=#\([^-+# ]\)\@='
syntax match TagbarAccessPrivate '\([▶▼ ]\)\@<=-\([^-+# ]\)\@='
elseif (has('win32') || has('win64')) && g:tagbar_usearrows
syntax match TagbarKind '\([▷◢][-+ ]\)\@<=[^-+: ]\+[^:]\+$'
syntax match TagbarScope '[^-+#▷◢(* ]\+\(\*\? :\)\@='
syntax match TagbarAccessPublic '\([▶▼ ]\)\@<=+\([^-+# ]\)\@='
syntax match TagbarAccessProtected '\([▶▼ ]\)\@<=#\([^-+# ]\)\@='
syntax match TagbarAccessPrivate '\([▶▼ ]\)\@<=-\([^-+# ]\)\@='
elseif has('multi_byte') && (has('win32') || has('win64')) && g:tagbar_usearrows
syntax match TagbarKind '\([▷◢][-+ ]\)\@<=[^-+: ]\+[^:]\+$'
syntax match TagbarScope '[^-+#▷◢(* ]\+\(\*\? :\)\@='
syntax match TagbarFoldIcon '[▷◢]\([-+# ]\)\@='
syntax match TagbarFoldIcon '[▷◢]\([-+# ]\)\@='
syntax match TagbarAccessPublic '\([▷◢ ]\)\@<=+\([^-+# ]\)\@='
syntax match TagbarAccessProtected '\([▷◢ ]\)\@<=#\([^-+# ]\)\@='
syntax match TagbarAccessPrivate '\([▷◢ ]\)\@<=-\([^-+# ]\)\@='
endif
syntax match TagbarAccessPublic '\([▷◢ ]\)\@<=+\([^-+# ]\)\@='
syntax match TagbarAccessProtected '\([▷◢ ]\)\@<=#\([^-+# ]\)\@='
syntax match TagbarAccessPrivate '\([▷◢ ]\)\@<=-\([^-+# ]\)\@='
else
syntax match TagbarKind '\([-+][-+ ]\)\@<=[^-+: ]\+[^:]\+$'
syntax match TagbarScope '[^-+#(* ]\+\(\*\? :\)\@='