Skip to content

Commit

Permalink
highlight TODO etc in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dag committed May 18, 2012
1 parent a8e5bcc commit 6488038
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion autoload/vim2hs/haskell/syntax.vim
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,24 @@ endfunction " }}}


function! vim2hs#haskell#syntax#comments() " {{{
syntax case match

syntax keyword hsTodo
\ TODO FIXME XXX
\ contained

syntax match hsComment
\ /--.*/
\ contains=hsTodo

syntax region hsBlockComment
\ start="{-" end="-}"
\ contains=hsBlockComment
\ contains=hsBlockComment,hsTodo

syntax region hsPragma
\ start="{-#" end="#-}"

highlight! link hsTodo Todo
highlight! link hsComment Comment
highlight! link hsBlockComment Comment
highlight! link hsPragma PreProc
Expand Down

0 comments on commit 6488038

Please sign in to comment.