From 09e7498c4be815858325198008373d1518774ddc Mon Sep 17 00:00:00 2001 From: NerdyPepper Date: Sun, 25 Feb 2018 12:44:54 +0530 Subject: New python multiplication ligature --- ligature_plugins/python.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ligature_plugins/python.vim b/ligature_plugins/python.vim index 3542ae3..2f9b1b6 100644 --- a/ligature_plugins/python.vim +++ b/ligature_plugins/python.vim @@ -7,7 +7,6 @@ if !has('conceal') finish endif -" remove the keywords. we'll re-add them below syntax clear pythonOperator syntax match pythonOperator "\" @@ -15,11 +14,10 @@ syntax match pythonOperator "\" syntax match pyNiceOperator "\" conceal cchar=∈ syntax match pyNiceOperator "\" conceal cchar=∨ syntax match pyNiceOperator "\" conceal cchar=∧ -" include the space after “not” – if present – so that “not a” becomes “¬a”. -" also, don't hide “not” behind ‘¬’ if it is after “is ”. + syntax match pyNiceOperator "<=" conceal cchar=≤ syntax match pyNiceOperator ">=" conceal cchar=≥ -" only conceal “==” if alone, to avoid concealing SCM conflict markers + syntax match pyNiceOperator "=\@" conceal cchar=√ syntax match pyNiceKeyword "\<\%(math\.\)\?pi\>" conceal cchar=π +syntax match pyNiceOperator " \* " conceal cchar=· + syntax keyword pyNiceStatement lambda conceal cchar=λ hi link pyNiceOperator Operator -- cgit v1.2.3