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
+1 -2
View File
@@ -14,8 +14,7 @@ PyFile:Annotations.py
PsiElement(Py:RPAR)(')')
PsiWhiteSpace(' ')
PyAnnotation
PsiElement(Py:MINUS)('-')
PsiElement(Py:GT)('>')
PsiElement(Py:RARROW)('->')
PsiWhiteSpace(' ')
PyReferenceExpression: list
PsiElement(Py:IDENTIFIER)('list')