aboutsummaryrefslogtreecommitdiff
path: root/ligature_plugins/rust.vim
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-04-14 06:40:27 +0100
committerAkshay <[email protected]>2020-04-14 06:40:27 +0100
commit17d7476fbc4895a05998db7e1a8357ea24ee25fd (patch)
treec1e32af8c3453a67824a00f6a125e39dfcde83fa /ligature_plugins/rust.vim
parent86dfb2b9201a4690aa11101e8060d55a2166d279 (diff)
improve haskell ligatures, add rust ligature conceals
Diffstat (limited to 'ligature_plugins/rust.vim')
-rw-r--r--ligature_plugins/rust.vim21
1 files changed, 21 insertions, 0 deletions
diff --git a/ligature_plugins/rust.vim b/ligature_plugins/rust.vim
new file mode 100644
index 0000000..a4a3d41
--- /dev/null
+++ b/ligature_plugins/rust.vim
@@ -0,0 +1,21 @@
1setlocal conceallevel=1
2syntax clear rustOperator
3
4syntax match rustBelleOperator "<=" conceal cchar=≤
5syntax match rustBelleOperator ">=" conceal cchar=≥
6syntax match rustBelleOperator "!=" conceal cchar=≠
7
8" ->
9syn match rustArrowCharacter /->/ contains=PointerTail,PointerHead
10syn match PointerTail /-/ contained containedin=rustReturn conceal cchar=
11syn match PointerHead /-\@<=>/ contained containedin=rustReturn conceal cchar=→
12
13" =>
14syn match rustImplies /=>/ contains=ImpliesTail,ImpliesHead
15syn match ImpliesTail /=/ contained containedin=rustImplies conceal cchar=
16syn match ImpliesHead /=\@<=>/ contained containedin=rustImplies conceal cchar=⇒
17
18" ==
19syn match rustIsEqual /==/ contains=FirstEqual,SecondEqual
20syn match FirstEqual /=/ contained containedin=rustIsEqual conceal cchar=
21syn match SecondEqual /=\@<=>/ contained containedin=rustIsEqual conceal cchar=