diff options
author | NerdyPepper <[email protected]> | 2018-02-13 08:07:54 +0000 |
---|---|---|
committer | NerdyPepper <[email protected]> | 2018-02-13 08:07:54 +0000 |
commit | 1492427be5317478f040aff795439eb092173e6b (patch) | |
tree | 912dd8561c277834f1aaf91099fb67a9510c937e /ligature_plugins/cpp.vim | |
parent | bc103b46c0e79e9e6901e26b850ff620e1f41ec6 (diff) |
Add plugins for ligatures
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 | ||