diff options
Diffstat (limited to 'ligature_plugins')
-rw-r--r-- | ligature_plugins/python.vim | 8 |
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 |
8 | endif | 8 | endif |
9 | 9 | ||
10 | " remove the keywords. we'll re-add them below | ||
11 | syntax clear pythonOperator | 10 | syntax clear pythonOperator |
12 | 11 | ||
13 | syntax match pythonOperator "\<is\>" | 12 | syntax match pythonOperator "\<is\>" |
@@ -15,11 +14,10 @@ syntax match pythonOperator "\<is\>" | |||
15 | syntax match pyNiceOperator "\<in\>" conceal cchar=∈ | 14 | syntax match pyNiceOperator "\<in\>" conceal cchar=∈ |
16 | syntax match pyNiceOperator "\<or\>" conceal cchar=∨ | 15 | syntax match pyNiceOperator "\<or\>" conceal cchar=∨ |
17 | syntax match pyNiceOperator "\<and\>" conceal cchar=∧ | 16 | syntax 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 ”. | ||
20 | syntax match pyNiceOperator "<=" conceal cchar=≤ | 18 | syntax match pyNiceOperator "<=" conceal cchar=≤ |
21 | syntax match pyNiceOperator ">=" conceal cchar=≥ | 19 | syntax match pyNiceOperator ">=" conceal cchar=≥ |
22 | " only conceal “==” if alone, to avoid concealing SCM conflict markers | 20 | |
23 | syntax match pyNiceOperator "=\@<!===\@!" conceal cchar=≡ | 21 | syntax match pyNiceOperator "=\@<!===\@!" conceal cchar=≡ |
24 | syntax match pyNiceOperator "!=" conceal cchar=≠ | 22 | syntax match pyNiceOperator "!=" conceal cchar=≠ |
25 | 23 | ||
@@ -27,6 +25,8 @@ syntax keyword pyNiceOperator sum conceal cchar=∑ | |||
27 | syntax match pyNiceOperator "\<\%(math\.\)\?sqrt\>" conceal cchar=√ | 25 | syntax match pyNiceOperator "\<\%(math\.\)\?sqrt\>" conceal cchar=√ |
28 | syntax match pyNiceKeyword "\<\%(math\.\)\?pi\>" conceal cchar=π | 26 | syntax match pyNiceKeyword "\<\%(math\.\)\?pi\>" conceal cchar=π |
29 | 27 | ||
28 | syntax match pyNiceOperator " \* " conceal cchar=· | ||
29 | |||
30 | syntax keyword pyNiceStatement lambda conceal cchar=λ | 30 | syntax keyword pyNiceStatement lambda conceal cchar=λ |
31 | 31 | ||
32 | hi link pyNiceOperator Operator | 32 | hi link pyNiceOperator Operator |