include comments in module block

This commit is contained in:
raichoo 2014-07-04 17:48:12 +02:00
parent b759744a71
commit cccb536b4f

View file

@ -13,7 +13,7 @@ endif
syn keyword haskellBlockKeywords data type family module where class instance contained
syn region haskellModuleBlock start="\<module\>" end="\<where\>"
\ contains=haskellType,haskellDelimiter,haskellDot,haskellOperators,haskellModule,haskellBlockKeywords keepend
\ contains=haskellType,haskellDelimiter,haskellDot,haskellOperators,haskellModule,haskellBlockKeywords,haskellLineComment,haskellBlockComment keepend
syn region haskellBlock start="\<\(class\|instance\)\>" end="\(\<where\>\|[\n]\)"
\ contains=haskellType,haskellDelimiter,haskellDot,haskellOperators,haskellModule,haskellBlockKeywords keepend
syn region haskellDataBlock start="\<\(data\|type\)\>\(\s\+\<family\>\)\?" end="\([=\n]\|\<where\>\)"