Skip to content

Allow single quotes to form a docblock for python#71

Merged
bmcutler merged 1 commit into
masterfrom
docblock
Feb 11, 2019
Merged

Allow single quotes to form a docblock for python#71
bmcutler merged 1 commit into
masterfrom
docblock

Conversation

@MasterOdin

Copy link
Copy Markdown
Member

The current version will fail if a student uses single quote docblocks, and then a single quote within that docblock as the parser does not recognize that as a multiline comment that should be ignored when parsing.

An example of this would be:

'''
Some test comment that I'd like to see pass
'''
first = input("Enter the first number: ")
print(first)
if float(first) < 5:
    print('Below five')
else:
    print('Above file')

where running:
count --language python token If test.py should output 1 (currently outputs 0)

@bmcutler bmcutler merged commit c2784b0 into master Feb 11, 2019
@bmcutler bmcutler deleted the docblock branch February 11, 2019 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants