mercurial/fileset.py
changeset 14513 85fe676c27e9
parent 14511 30506b894359
child 14551 68d814a3cefd
equal deleted inserted replaced
14512:8c8b55733cbd 14513:85fe676c27e9
    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):