aboutsummaryrefslogtreecommitdiff
path: root/ligature_plugins/cpp.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ligature_plugins/cpp.vim')
-rw-r--r--ligature_plugins/cpp.vim25
1 files changed, 25 insertions, 0 deletions
diff --git a/ligature_plugins/cpp.vim b/ligature_plugins/cpp.vim
new file mode 100644
index 0000000..a0b7c96
--- /dev/null
+++ b/ligature_plugins/cpp.vim
@@ -0,0 +1,25 @@
1syntax clear cppOperator
2
3
4syntax match cppBelleOperator "<=" conceal cchar=≤
5syntax match cppBelleOperator ">=" conceal cchar=≥
6syntax match cppBelleOperator "!=" conceal cchar=≠
7
8
9" ->
10syn match cppPointer /->/ contains=PointerTail,PointerHead
11syn match PointerTail /-/ contained containedin=cppPointer conceal cchar=
12syn match PointerHead /-\@<=>/ contained containedin=cppPointer conceal cchar=→
13
14" ==
15syn match cppIsEqual /==/ contains=FirstEqual,SecondEqual
16syn match FirstEqual /=/ contained containedin=cppIsEqual conceal cchar=
17syn match SecondEqual /=\@<=>/ contained containedin=cppIsEqual conceal cchar=
18
19
20hi link cppBelleOperator Operator
21hi link cppPointer Keyword
22
23
24hi! link Conceal Operator
25setlocal conceallevel=1