From 832dfece7629ac1a6f4894e956802b456ae791ea Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 4 Sep 2019 16:06:18 +0200 Subject: Add dhall, closes #426 --- after/syntax/haskell.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 after/syntax/haskell.vim (limited to 'after') diff --git a/after/syntax/haskell.vim b/after/syntax/haskell.vim new file mode 100644 index 00000000..db454f2f --- /dev/null +++ b/after/syntax/haskell.vim @@ -0,0 +1,17 @@ +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dhall') != -1 + finish +endif + +" store and remove current syntax value +let old_syntax = b:current_syntax +unlet b:current_syntax + +syn include @dhall syntax/dhall.vim +unlet b:current_syntax + +syn region dhallBlock matchgroup=quasiQuote start=/\[\$\?staticDhallExpression|/ end=/|\]/ contains=@dhall + +hi def link quasiQuote Underlined + +" restore current syntax value +let b:current_syntax = old_syntax -- cgit v1.2.3