summaryrefslogtreecommitdiffstats
path: root/after/syntax/haskell.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-09-04 16:06:18 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-09-04 16:06:18 +0200
commit832dfece7629ac1a6f4894e956802b456ae791ea (patch)
tree2165f0f8cfded20568d3022b0a19bbb25b025434 /after/syntax/haskell.vim
parent933e42ea1f2d615c8ce5aa6daa2994e6369de3cf (diff)
downloadvim-polyglot-832dfece7629ac1a6f4894e956802b456ae791ea.tar.gz
vim-polyglot-832dfece7629ac1a6f4894e956802b456ae791ea.zip
Add dhall, closes #426
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