PY-15469 Delimiter "->" in Python is parsed as single token

Thanks to that, pressing enter no longer inserts backslash in the
middle of "->" sequence (and such corrupted code is properly
highlighted now on).
This commit is contained in:
Mikhail Golubev
2015-04-08 16:28:54 +03:00
parent aced4ab039
commit 8f30a5836a
6 changed files with 550 additions and 533 deletions
@@ -138,6 +138,7 @@ public class PyTokenTypes {
public static final PyElementType LTLTEQ = new PyElementType("LTLTEQ");// <<=
public static final PyElementType GTGTEQ = new PyElementType("GTGTEQ");// >>=
public static final PyElementType EXPEQ = new PyElementType("EXPEQ");// **=
public static final PyElementType RARROW = new PyElementType("RARROW");// ->
public static final TokenSet OPERATIONS = TokenSet.create(
PLUS, MINUS, MULT, AT, EXP, DIV, FLOORDIV, PERC, LTLT, GTGT, AND, OR,