equal
deleted
inserted
replaced
54 yield ('string', decode(program[s:pos]), s) |
54 yield ('string', decode(program[s:pos]), s) |
55 break |
55 break |
56 pos += 1 |
56 pos += 1 |
57 else: |
57 else: |
58 raise error.ParseError(_("unterminated string"), s) |
58 raise error.ParseError(_("unterminated string"), s) |
59 elif c.isalnum() or c in '.*{}[]?' or ord(c) > 127: # gather up a symbol/keyword |
59 elif c.isalnum() or c in '.*{}[]?' or ord(c) > 127: |
|
60 # gather up a symbol/keyword |
60 s = pos |
61 s = pos |
61 pos += 1 |
62 pos += 1 |
62 while pos < l: # find end of symbol |
63 while pos < l: # find end of symbol |
63 d = program[pos] |
64 d = program[pos] |
64 if not (d.isalnum() or d in ".*{}[]?," or ord(d) > 127): |
65 if not (d.isalnum() or d in ".*{}[]?," or ord(d) > 127): |