Skip to content

Commit

Permalink
Add universal-ctags Haskell support (#849)
Browse files Browse the repository at this point in the history
* Add universal-ctags Haskell support

based on: Universal Ctags 5.9.0

* Update autoload/tagbar/types/uctags.vim

Co-authored-by: David Hegland <darth.gerbil@gmail.com>

---------

Co-authored-by: David Hegland <darth.gerbil@gmail.com>
  • Loading branch information
robinp and raven42 committed Apr 5, 2023
1 parent af3ce7c commit be56353
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions autoload/tagbar/types/uctags.vim
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,16 @@ function! tagbar#types#uctags#init(supported_types) abort
\ 'struct' : 's'
\ }
let types.go = type_go
" Haskell {{{1
let type_haskell = tagbar#prototypes#typeinfo#new()
let type_haskell.ctagstype = 'haskell'
let type_haskell.kinds = [
\ {'short' : 'm', 'long' : 'module', 'fold' : 0, 'stl' : 0},
\ {'short' : 't', 'long' : 'types', 'fold' : 0, 'stl' : 0},
\ {'short' : 'c', 'long' : 'constructors', 'fold' : 0, 'stl' : 0},
\ {'short' : 'f', 'long' : 'functions', 'fold' : 0, 'stl' : 1}
\ ]
let types.haskell = type_haskell
" HTML {{{1
let type_html = tagbar#prototypes#typeinfo#new()
let type_html.ctagstype = 'html'
Expand Down

0 comments on commit be56353

Please sign in to comment.