aboutsummaryrefslogtreecommitdiff
path: root/ligature_plugins/rust.vim
blob: c742f35315678ac0c9b9110328f4a62f4bf3f1b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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=" #[
syn match rustAttributeHash  /#\[/  contains=rustAH,rustAB
syn match rustAH         /#/        contained containedin=rustAH conceal cchar=syn match rustAB        /\[/   contained containedin=rustAB conceal cchar=