comparison runtime/syntax/lhaskell.vim @ 2152:b9e314fe473f

Updated runtime files.
author Bram Moolenaar <bram@zimbu.org>
date Fri, 14 May 2010 23:24:24 +0200
parents 7bc41231fbc7
children 43efa4f5a8ea
comparison
equal deleted inserted replaced
2151:ae22c450546c 2152:b9e314fe473f
2 " Language: Haskell with literate comments, Bird style, 2 " Language: Haskell with literate comments, Bird style,
3 " TeX style and plain text surrounding 3 " TeX style and plain text surrounding
4 " \begin{code} \end{code} blocks 4 " \begin{code} \end{code} blocks
5 " Maintainer: Haskell Cafe mailinglist <haskell-cafe@haskell.org> 5 " Maintainer: Haskell Cafe mailinglist <haskell-cafe@haskell.org>
6 " Original Author: Arthur van Leeuwen <arthurvl@cs.uu.nl> 6 " Original Author: Arthur van Leeuwen <arthurvl@cs.uu.nl>
7 " Last Change: 2009 May 08 7 " Last Change: 2010 Apr 11
8 " Version: 1.04 8 " Version: 1.04
9 " 9 "
10 " Thanks to Ian Lynagh for thoughtful comments on initial versions and 10 " Thanks to Ian Lynagh for thoughtful comments on initial versions and
11 " for the inspiration for writing this in the first place. 11 " for the inspiration for writing this in the first place.
12 " 12 "
105 else 105 else
106 syntax include @haskellTop syntax/haskell.vim 106 syntax include @haskellTop syntax/haskell.vim
107 endif 107 endif
108 108
109 syntax region lhsHaskellBirdTrack start="^>" end="\%(^[^>]\)\@=" contains=@haskellTop,lhsBirdTrack containedin=@lhsTeXContainer 109 syntax region lhsHaskellBirdTrack start="^>" end="\%(^[^>]\)\@=" contains=@haskellTop,lhsBirdTrack containedin=@lhsTeXContainer
110 syntax region lhsHaskellBeginEndBlock start="^\\begin{code}\s*$" matchgroup=NONE end="\%(^\\end{code}.*$\)\@=" contains=@haskellTop,@beginCode containedin=@lhsTeXContainer 110 syntax region lhsHaskellBeginEndBlock start="^\\begin{code}\s*$" matchgroup=NONE end="\%(^\\end{code}.*$\)\@=" contains=@haskellTop,beginCodeBegin containedin=@lhsTeXContainer
111 111
112 syntax match lhsBirdTrack "^>" contained 112 syntax match lhsBirdTrack "^>" contained
113 113
114 syntax match beginCodeBegin "^\\begin" nextgroup=beginCodeCode contained 114 syntax match beginCodeBegin "^\\begin" nextgroup=beginCodeCode contained
115 syntax region beginCodeCode matchgroup=texDelimiter start="{" end="}" 115 syntax region beginCodeCode matchgroup=texDelimiter start="{" end="}"
116 syntax cluster beginCode contains=beginCodeBegin,beginCodeCode
117 116
118 " Define the default highlighting. 117 " Define the default highlighting.
119 " For version 5.7 and earlier: only when not done already 118 " For version 5.7 and earlier: only when not done already
120 " For version 5.8 and later: only when an item doesn't have highlighting yet 119 " For version 5.8 and later: only when an item doesn't have highlighting yet
121 if version >= 508 || !exists("did_tex_syntax_inits") 120 if version >= 508 || !exists("did_tex_syntax_inits")