summaryrefslogtreecommitdiffstats
path: root/after/syntax/haskell.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/syntax/haskell.vim')
-rw-r--r--after/syntax/haskell.vim17
1 files changed, 17 insertions, 0 deletions
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