Skip to content

Commit 2ba44e2

Browse files
majutsushivim-scripts
authored andcommitted
Version 1.2
- Fix typo in Ruby definition Thanks to Mishail for reporting.
1 parent c8409bf commit 2ba44e2

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

doc/tagbar.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Author: Jan Larres <jan@majutsushi.net>
44
Licence: Vim licence, see |license|
55
Homepage: http://majutsushi.github.com/tagbar/
6-
Version: 1.1
6+
Version: 1.2
77

88
==============================================================================
99
Contents *tagbar* *tagbar-contents*
@@ -593,6 +593,9 @@ files.
593593
==============================================================================
594594
8. History *tagbar-history*
595595

596+
1.2 (2011-02-28)
597+
- Fix typo in Ruby definition
598+
596599
1.1 (2011-02-26)
597600
- Don't lose syntax highlighting when ':syntax enable' is called
598601
- Allow expanding the Vim window when Tagbar is opened

plugin/tagbar.vim

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
" Author: Jan Larres <jan@majutsushi.net>
55
" Licence: Vim licence
66
" Website: http://majutsushi.github.com/tagbar/
7-
" Version: 1.1
7+
" Version: 1.2
88
" Note: This plugin was heavily inspired by the 'Taglist' plugin by
99
" Yegappan Lakshmanan and uses a small amount of code from it.
1010
"
@@ -536,8 +536,9 @@ function! s:InitTypes()
536536
\ 'f:methods',
537537
\ 'F:singleton methods'
538538
\ ]
539-
let type_ruby.kinds2scope = {
540-
\ 'c' : 'class'
539+
let type_ruby.kind2scope = {
540+
\ 'c' : 'class',
541+
\ 'm' : 'class'
541542
\ }
542543
let type_ruby.scope2kind = {
543544
\ 'class' : 'c'
@@ -1033,12 +1034,10 @@ function! s:ProcessFile(fname, ftype)
10331034

10341035
if has_key(typeinfo, 'scopes') && !empty(typeinfo.scopes)
10351036
let scopedtags = []
1036-
for scope in typeinfo.scopes
1037-
let is_scoped = 'has_key(typeinfo.kind2scope, v:val.fields.kind) ||
1038-
\ has_key(v:val.fields, scope)'
1039-
let scopedtags += filter(copy(fileinfo.tags), is_scoped)
1040-
call filter(fileinfo.tags, '!(' . is_scoped . ')')
1041-
endfor
1037+
let is_scoped = 'has_key(typeinfo.kind2scope, v:val.fields.kind) ||
1038+
\ has_key(v:val, "scope")'
1039+
let scopedtags += filter(copy(fileinfo.tags), is_scoped)
1040+
call filter(fileinfo.tags, '!(' . is_scoped . ')')
10421041

10431042
let processedtags = []
10441043
call s:AddScopedTags(scopedtags, processedtags, '', '', 0, typeinfo)

syntax/tagbar.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Author: Jan Larres <jan@majutsushi.net>
44
" Licence: Vim licence
55
" Website: http://majutsushi.github.com/tagbar/
6-
" Version: 1.1
6+
" Version: 1.2
77

88
if exists("b:current_syntax")
99
finish

0 commit comments

Comments
 (0)