Browse Source

Problem localization?

pull/172/head
Oliverpool 9 years ago
parent
commit
9dca42bc16
  1. 4
      patacrep/songs/chordpro/syntax.py

4
patacrep/songs/chordpro/syntax.py

@ -303,6 +303,10 @@ class ChordproParser(Parser):
def p_error(self, token):
super().p_error(token)
if not token:
# End of file
# Maybe it should raise an error ?
return token
while True:
token = self.parser.token()
if not token or token.type == "ENDOFLINE":

Loading…
Cancel
Save