From d29fb7b3b1c6fd91c4a086692256e8fd0ff6bbbf Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 16 Aug 2020 12:22:59 +0530 Subject: add rust ligations --- ligature_plugins/rust.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ligature_plugins') diff --git a/ligature_plugins/rust.vim b/ligature_plugins/rust.vim index a4a3d41..c742f35 100644 --- a/ligature_plugins/rust.vim +++ b/ligature_plugins/rust.vim @@ -19,3 +19,8 @@ syn match ImpliesHead /=\@<=>/ contained containedin=rustImplies conceal ccha 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= -- cgit v1.2.3