Skip to content

Commit

Permalink
Fixed bug introduced by comments processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
smelandr committed Jan 11, 2017
1 parent 1fd1d69 commit 669f0ca
Show file tree
Hide file tree
Showing 3 changed files with 275 additions and 314 deletions.
3 changes: 2 additions & 1 deletion nmrstarlib/bmrblex.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def transform_text(input_txt):
line = inputq.popleft()

outputq.append(comment)

for character in line:
outputq.append(character)

Expand Down Expand Up @@ -122,7 +123,7 @@ def bmrblex(text):
nextnextchar = u""

# Process multiline string or comment
if nextchar.startswith(u"\n;\n") or nextchar.lstrip().startswith(u"#"):
if len(nextchar) > 1:
state = u" "
token = nextchar
break # emit current token
Expand Down

0 comments on commit 669f0ca

Please sign in to comment.