diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2017-02-02 21:16:29 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2017-02-02 21:16:29 +0100 |
commit | e685e4b431ab017d1aec9f9668fbeeeb6e7113e6 (patch) | |
tree | 47137f448d461ebb6852d81c6f553d0843e33764 /syntax/haskell.vim | |
parent | e404a658b1647fad396a954776eda0bdabf8353c (diff) | |
download | vim-polyglot-e685e4b431ab017d1aec9f9668fbeeeb6e7113e6.tar.gz vim-polyglot-e685e4b431ab017d1aec9f9668fbeeeb6e7113e6.zip |
Update
Diffstat (limited to 'syntax/haskell.vim')
-rw-r--r-- | syntax/haskell.vim | 11 |
1 files changed, 10 insertions, 1 deletions
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="\<foreign\>" end="::" keepend \ haskellOperators, \ haskellForeignKeywords, \ haskellIdentifier -syn match haskellImport "^\<import\>\s\+\(\<safe\>\s\+\)\?\(\<qualified\>\s\+\)\?.\+\(\s\+\<as\>\s\+.\+\)\?\(\s\+\<hiding\>\)\?" +syn match haskellImport "^\s*\<import\>\s\+\(\<safe\>\s\+\)\?\(\<qualified\>\s\+\)\?.\+\(\s\+\<as\>\s\+.\+\)\?\(\s\+\<hiding\>\)\?" \ 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 |