mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
tweak decorator parsing so that following line comment is outside the text range of PyDecorator (PY-5912)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
@uncallable_deco # some comment
|
||||
def f():
|
||||
pass
|
||||
@@ -0,0 +1,23 @@
|
||||
PyFile:CommentAfterDecorator.py
|
||||
PyFunction('f')
|
||||
PyDecoratorList
|
||||
PyDecorator: @uncallable_deco
|
||||
PsiElement(Py:AT)('@')
|
||||
PyReferenceExpression: uncallable_deco
|
||||
PsiElement(Py:IDENTIFIER)('uncallable_deco')
|
||||
PyArgumentList
|
||||
<empty list>
|
||||
PsiWhiteSpace(' ')
|
||||
PsiComment(Py:END_OF_LINE_COMMENT)('# some comment')
|
||||
PsiWhiteSpace('\n')
|
||||
PsiElement(Py:DEF_KEYWORD)('def')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:IDENTIFIER)('f')
|
||||
PyParameterList
|
||||
PsiElement(Py:LPAR)('(')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
PsiElement(Py:COLON)(':')
|
||||
PsiWhiteSpace('\n ')
|
||||
PyStatementList
|
||||
PyPassStatement
|
||||
PsiElement(Py:PASS_KEYWORD)('pass')
|
||||
Reference in New Issue
Block a user