From d7cdae93de9283b3e8df7c6612aefd59377f612a Mon Sep 17 00:00:00 2001 From: Kai Lautaportti Date: Tue, 17 May 2016 14:09:34 -0700 Subject: [PATCH] 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. --- test/expressions/expr20.py | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 test/expressions/expr20.py diff --git a/test/expressions/expr20.py b/test/expressions/expr20.py new file mode 100644 index 00000000..fd081bb9 --- /dev/null +++ b/test/expressions/expr20.py @@ -0,0 +1,39 @@ +a == b +a != b +a < b +a <= b +a > b +a >= b + + + +a : source.python + : source.python +== : keyword.operator.comparison.python, source.python + : source.python +b : source.python +a : source.python + : source.python +!= : keyword.operator.comparison.python, source.python + : source.python +b : source.python +a : source.python + : source.python +< : keyword.operator.comparison.python, source.python + : source.python +b : source.python +a : source.python + : source.python +<= : keyword.operator.comparison.python, source.python + : source.python +b : source.python +a : source.python + : source.python +> : keyword.operator.comparison.python, source.python + : source.python +b : source.python +a : source.python + : source.python +>= : keyword.operator.comparison.python, source.python + : source.python +b : source.python