aboutsummaryrefslogtreecommitdiff
path: root/ligature_plugins/cpp.vim
diff options
context:
space:
mode:
authorNerdyPepper <[email protected]>2018-02-13 08:07:54 +0000
committerNerdyPepper <[email protected]>2018-02-13 08:07:54 +0000
commit1492427be5317478f040aff795439eb092173e6b (patch)
tree912dd8561c277834f1aaf91099fb67a9510c937e /ligature_plugins/cpp.vim
parentbc103b46c0e79e9e6901e26b850ff620e1f41ec6 (diff)
Add plugins for ligatures
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