Skip to content

Commit

Permalink
:Tabularize haskell_comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dag committed May 19, 2012
1 parent 6488038 commit a3973b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions autoload/vim2hs/haskell/editing.vim
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ endfunction " }}}
function! vim2hs#haskell#editing#tabular() " {{{
AddTabularPattern! colon /^[^:]*\zs:/
AddTabularPattern! haskell_bindings /^[^=]*\zs=/
AddTabularPattern! haskell_comments /--.*/l2
AddTabularPattern! haskell_do_arrows / <- /l0r0
AddTabularPattern! haskell_imports /^[^(]*\zs(.*\|\<as\>.*/
AddTabularPattern! haskell_pattern_arrows / -> /l0r0
Expand Down
3 changes: 3 additions & 0 deletions doc/vim2hs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ See also |g:haskell_tabular|.
:Tabularize haskell_bindings
Align a set of bindings by "=".

:Tabularize haskell_comments
Align line-comments at the end of lines.

:Tabularize haskell_do_arrows
Align a set of monadic binds by "<-".

Expand Down

0 comments on commit a3973b1

Please sign in to comment.