aboutsummaryrefslogtreecommitdiff
path: root/ligature_plugins/rust.vim
blob: a4a3d4175ac0d634a6975d39bc0713e7bd29c5ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
setlocal conceallevel=1
syntax clear rustOperator

syntax match rustBelleOperator "<=" conceal cchar=syntax match rustBelleOperator ">=" conceal cchar=syntax match rustBelleOperator "!=" conceal cchar=" ->
syn match rustArrowCharacter   /->/      contains=PointerTail,PointerHead
syn match PointerTail          /-/       contained containedin=rustReturn conceal cchar=syn match PointerHead          /-\@<=>/  contained containedin=rustReturn conceal cchar=" =>
syn match rustImplies   /=>/      contains=ImpliesTail,ImpliesHead
syn match ImpliesTail  /=/        contained containedin=rustImplies conceal cchar=syn match ImpliesHead  /=\@<=>/   contained containedin=rustImplies conceal cchar=" ==
syn match rustIsEqual   /==/     contains=FirstEqual,SecondEqual
syn match FirstEqual  /=/        contained containedin=rustIsEqual conceal cchar=syn match SecondEqual  /=\@<=>/  contained containedin=rustIsEqual conceal cchar=