Skip to content

Commit d7cdae9

Browse files
committed
Added a test to demonstrate problem tokenizing the equals comparison.
The equals comparison, `==`, is tokenized into two consecutive assignments instead of the comparison. One effect of this is that if you're using a font with programming ligatures, e.g. FireCode, then the correct ligature will not be used for the equals operator.
1 parent fd23525 commit d7cdae9

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

test/expressions/expr20.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
a == b
2+
a != b
3+
a < b
4+
a <= b
5+
a > b
6+
a >= b
7+
8+
9+
10+
a : source.python
11+
: source.python
12+
== : keyword.operator.comparison.python, source.python
13+
: source.python
14+
b : source.python
15+
a : source.python
16+
: source.python
17+
!= : keyword.operator.comparison.python, source.python
18+
: source.python
19+
b : source.python
20+
a : source.python
21+
: source.python
22+
< : keyword.operator.comparison.python, source.python
23+
: source.python
24+
b : source.python
25+
a : source.python
26+
: source.python
27+
<= : keyword.operator.comparison.python, source.python
28+
: source.python
29+
b : source.python
30+
a : source.python
31+
: source.python
32+
> : keyword.operator.comparison.python, source.python
33+
: source.python
34+
b : source.python
35+
a : source.python
36+
: source.python
37+
>= : keyword.operator.comparison.python, source.python
38+
: source.python
39+
b : source.python

0 commit comments

Comments
 (0)