Skip to content

주석 파싱 버그 #10

@ShinWonho

Description

@ShinWonho
if x > 0:
  # x is positive
  pass

위와 같이 한 줄이 comment로만 이루어진 경우는 파싱이 잘 됩니다.

if x > 0: # x is positive
  pass

그러나 위와 같이 statement 중간에 comment가 오는 형태로 이루어진 경우에는 파싱이 제대로 되지 않습니다.

+ 관련 버그가 조금 더 있는 것 같습니다.

del x # comment

저희가 구현한 파싱 규칙 상으로 위 statement가 파싱이 되지 않지만,

pass # comment

delStmt을 제외한 simple statement뒤에 comment가 쓰이는 경우는 comment를 무시한채 파싱이 됩니다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions