From e685e4b431ab017d1aec9f9668fbeeeb6e7113e6 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 2 Feb 2017 21:16:29 +0100 Subject: Update --- syntax/haskell.vim | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'syntax/haskell.vim') diff --git a/syntax/haskell.vim b/syntax/haskell.vim index 1f0f905a..bc86fbe7 100644 --- a/syntax/haskell.vim +++ b/syntax/haskell.vim @@ -17,6 +17,11 @@ if !exists('g:haskell_disable_TH') let g:haskell_disable_TH = 0 endif +if exists('g:haskell_backpack') && g:haskell_backpack == 1 + syn keyword haskellBackpackStructure unit signature + syn keyword haskellBackpackDependency dependency +endif + syn spell notoplevel syn match haskellRecordField contained containedin=haskellBlock \ "[_a-z][a-zA-Z0-9_']*\(,\s*[_a-z][a-zA-Z0-9_']*\)*\(\s*::\|\n\s\+::\)" @@ -48,7 +53,7 @@ syn region haskellForeignImport start="\" end="::" keepend \ haskellOperators, \ haskellForeignKeywords, \ haskellIdentifier -syn match haskellImport "^\\s\+\(\\s\+\)\?\(\\s\+\)\?.\+\(\s\+\\s\+.\+\)\?\(\s\+\\)\?" +syn match haskellImport "^\s*\\s\+\(\\s\+\)\?\(\\s\+\)\?.\+\(\s\+\\s\+.\+\)\?\(\s\+\\)\?" \ contains= \ haskellParens, \ haskellOperators, @@ -196,6 +201,10 @@ else endif endif +if exists('g:haskell_backpack') && g:haskell_backpack == 1 + highlight def link haskellBackpackStructure Structure + highlight def link haskellBackpackDependency Include +endif let b:current_syntax = "haskell" endif -- cgit v1.2.3