aboutsummaryrefslogtreecommitdiff
path: root/ligature_plugins
diff options
context:
space:
mode:
Diffstat (limited to 'ligature_plugins')
-rw-r--r--ligature_plugins/python.vim8
1 files 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')
7 finish 7 finish
8endif 8endif
9 9
10" remove the keywords. we'll re-add them below
11syntax clear pythonOperator 10syntax clear pythonOperator
12 11
13syntax match pythonOperator "\<is\>" 12syntax match pythonOperator "\<is\>"
@@ -15,11 +14,10 @@ syntax match pythonOperator "\<is\>"
15syntax match pyNiceOperator "\<in\>" conceal cchar=∈ 14syntax match pyNiceOperator "\<in\>" conceal cchar=∈
16syntax match pyNiceOperator "\<or\>" conceal cchar=∨ 15syntax match pyNiceOperator "\<or\>" conceal cchar=∨
17syntax match pyNiceOperator "\<and\>" conceal cchar=∧ 16syntax match pyNiceOperator "\<and\>" conceal cchar=∧
18" include the space after “not” – if present – so that “not a” becomes “¬a”. 17
19" also, don't hide “not” behind ‘¬’ if it is after “is ”.
20syntax match pyNiceOperator "<=" conceal cchar=≤ 18syntax match pyNiceOperator "<=" conceal cchar=≤
21syntax match pyNiceOperator ">=" conceal cchar=≥ 19syntax match pyNiceOperator ">=" conceal cchar=≥
22" only conceal “==” if alone, to avoid concealing SCM conflict markers 20
23syntax match pyNiceOperator "=\@<!===\@!" conceal cchar=≡ 21syntax match pyNiceOperator "=\@<!===\@!" conceal cchar=≡
24syntax match pyNiceOperator "!=" conceal cchar=≠ 22syntax match pyNiceOperator "!=" conceal cchar=≠
25 23
@@ -27,6 +25,8 @@ syntax keyword pyNiceOperator sum conceal cchar=∑
27syntax match pyNiceOperator "\<\%(math\.\)\?sqrt\>" conceal cchar=√ 25syntax match pyNiceOperator "\<\%(math\.\)\?sqrt\>" conceal cchar=√
28syntax match pyNiceKeyword "\<\%(math\.\)\?pi\>" conceal cchar=π 26syntax match pyNiceKeyword "\<\%(math\.\)\?pi\>" conceal cchar=π
29 27
28syntax match pyNiceOperator " \* " conceal cchar=·
29
30syntax keyword pyNiceStatement lambda conceal cchar=λ 30syntax keyword pyNiceStatement lambda conceal cchar=λ
31 31
32hi link pyNiceOperator Operator 32hi link pyNiceOperator Operator