Mercurial > vim
comparison runtime/syntax/haskell.vim @ 2034:7bc41231fbc7
Update runtime files.
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Wed, 06 Jan 2010 20:54:52 +0100 |
parents | 3fc0f57ecb91 |
children | 43efa4f5a8ea |
comparison
equal
deleted
inserted
replaced
2033:de5a43c5eedc | 2034:7bc41231fbc7 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Haskell | 2 " Language: Haskell |
3 " Maintainer: Haskell Cafe mailinglist <haskell-cafe@haskell.org> | 3 " Maintainer: Haskell Cafe mailinglist <haskell-cafe@haskell.org> |
4 " Last Change: 2004 Feb 23 | 4 " Last Change: 2008 Dec 15 |
5 " Original Author: John Williams <jrw@pobox.com> | 5 " Original Author: John Williams <jrw@pobox.com> |
6 " | 6 " |
7 " Thanks to Ryan Crumley for suggestions and John Meacham for | 7 " Thanks to Ryan Crumley for suggestions and John Meacham for |
8 " pointing out bugs. Also thanks to Ian Lynagh and Donald Bruce Stewart | 8 " pointing out bugs. Also thanks to Ian Lynagh and Donald Bruce Stewart |
9 " for providing the inspiration for the inclusion of the handling | 9 " for providing the inspiration for the inclusion of the handling |
28 " lhaskell.vim) | 28 " lhaskell.vim) |
29 " 2004 Feb 20: Cleaned up C preprocessor directive handling, fixed single \ | 29 " 2004 Feb 20: Cleaned up C preprocessor directive handling, fixed single \ |
30 " in eol comment character class | 30 " in eol comment character class |
31 " 2004 Feb 23: Made the leading comments somewhat clearer where it comes | 31 " 2004 Feb 23: Made the leading comments somewhat clearer where it comes |
32 " to attribution of work. | 32 " to attribution of work. |
33 " 2008 Dec 15: Added comments as contained element in import statements | |
33 | 34 |
34 " Remove any old syntax stuff hanging around | 35 " Remove any old syntax stuff hanging around |
35 if version < 600 | 36 if version < 600 |
36 syn clear | 37 syn clear |
37 elseif exists("b:current_syntax") | 38 elseif exists("b:current_syntax") |
65 | 66 |
66 " Keyword definitions. These must be patters instead of keywords | 67 " Keyword definitions. These must be patters instead of keywords |
67 " because otherwise they would match as keywords at the start of a | 68 " because otherwise they would match as keywords at the start of a |
68 " "literate" comment (see lhs.vim). | 69 " "literate" comment (see lhs.vim). |
69 syn match hsModule "\<module\>" | 70 syn match hsModule "\<module\>" |
70 syn match hsImport "\<import\>.*"he=s+6 contains=hsImportMod | 71 syn match hsImport "\<import\>.*"he=s+6 contains=hsImportMod,hsLineComment,hsBlockComment |
71 syn match hsImportMod contained "\<\(as\|qualified\|hiding\)\>" | 72 syn match hsImportMod contained "\<\(as\|qualified\|hiding\)\>" |
72 syn match hsInfix "\<\(infix\|infixl\|infixr\)\>" | 73 syn match hsInfix "\<\(infix\|infixl\|infixr\)\>" |
73 syn match hsStructure "\<\(class\|data\|deriving\|instance\|default\|where\)\>" | 74 syn match hsStructure "\<\(class\|data\|deriving\|instance\|default\|where\)\>" |
74 syn match hsTypedef "\<\(type\|newtype\)\>" | 75 syn match hsTypedef "\<\(type\|newtype\)\>" |
75 syn match hsStatement "\<\(do\|case\|of\|let\|in\)\>" | 76 syn match hsStatement "\<\(do\|case\|of\|let\|in\)\>" |