diff options
Diffstat (limited to 'ligature_plugins/cpp.vim')
-rw-r--r-- | ligature_plugins/cpp.vim | 25 |
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 @@ | |||
1 | syntax clear cppOperator | ||
2 | |||
3 | |||
4 | syntax match cppBelleOperator "<=" conceal cchar=≤ | ||
5 | syntax match cppBelleOperator ">=" conceal cchar=≥ | ||
6 | syntax match cppBelleOperator "!=" conceal cchar=≠ | ||
7 | |||
8 | |||
9 | " -> | ||
10 | syn match cppPointer /->/ contains=PointerTail,PointerHead | ||
11 | syn match PointerTail /-/ contained containedin=cppPointer conceal cchar= | ||
12 | syn match PointerHead /-\@<=>/ contained containedin=cppPointer conceal cchar=→ | ||
13 | |||
14 | " == | ||
15 | syn match cppIsEqual /==/ contains=FirstEqual,SecondEqual | ||
16 | syn match FirstEqual /=/ contained containedin=cppIsEqual conceal cchar= | ||
17 | syn match SecondEqual /=\@<=>/ contained containedin=cppIsEqual conceal cchar= | ||
18 | |||
19 | |||
20 | hi link cppBelleOperator Operator | ||
21 | hi link cppPointer Keyword | ||
22 | |||
23 | |||
24 | hi! link Conceal Operator | ||
25 | setlocal conceallevel=1 | ||