From 3e0c887365bc1ebd55b91dd69ab73f2dee1f00ed Mon Sep 17 00:00:00 2001 From: Dan Reif Date: Mon, 30 Apr 2018 12:00:42 -0700 Subject: Update (periodic rebuild) I originally meant to run this before adding haproxy, but accidentally pushed that into my branch. If you'd like to see that content, it's at https://github.com/CH-DanReif/vim-polyglot/commit/414ad25c3ad1ab9c4b6a99fe4f08d6c30b7e0f57. --- syntax/haskell.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'syntax/haskell.vim') diff --git a/syntax/haskell.vim b/syntax/haskell.vim index 048a40ea..9ca4d89e 100644 --- a/syntax/haskell.vim +++ b/syntax/haskell.vim @@ -38,7 +38,8 @@ syn match haskellTypeSig \ haskellParens syn keyword haskellWhere where syn keyword haskellLet let -syn keyword haskellDeclKeyword module class instance newtype deriving in +syn match HaskellDerive "\\(\s\+\<\(anyclass\|instance\|newtype\|stock\)\>\)\?" +syn keyword haskellDeclKeyword module class instance newtype in syn match haskellDecl "\<\(type\|data\)\>\s\+\(\\)\?" syn keyword haskellDefault default syn keyword haskellImportKeywords import qualified safe as hiding contained @@ -57,6 +58,7 @@ syn match haskellImport "^\s*\\s\+\(\\s\+\)\?\(\\s\+ \ haskellType, \ haskellLineComment, \ haskellBlockComment, + \ haskellString, \ haskellPragma syn keyword haskellKeyword do case of if get(g:, 'haskell_enable_static_pointers', 0) @@ -161,11 +163,13 @@ highlight def link haskellType Type highlight def link haskellImportKeywords Include if get(g:, 'haskell_classic_highlighting', 0) highlight def link haskellDeclKeyword Keyword + highlight def link HaskellDerive Keyword highlight def link haskellDecl Keyword highlight def link haskellWhere Keyword highlight def link haskellLet Keyword else highlight def link haskellDeclKeyword Structure + highlight def link HaskellDerive Structure highlight def link haskellDecl Structure highlight def link haskellWhere Structure highlight def link haskellLet Structure -- cgit v1.2.3