eric7/DebugClients/Python/coverage/phystokens.py

branch
eric7
changeset 9099
0e511e0e94a3
parent 8775
0802ae193343
equal deleted inserted replaced
9098:fb9351497cea 9099:0e511e0e94a3
58 # Yield the token, with a fake token type. 58 # Yield the token, with a fake token type.
59 yield ( 59 yield (
60 99999, "\\\n", 60 99999, "\\\n",
61 (slineno, ccol), (slineno, ccol+2), 61 (slineno, ccol), (slineno, ccol+2),
62 last_line 62 last_line
63 ) 63 )
64 last_line = ltext 64 last_line = ltext
65 if ttype not in (tokenize.NEWLINE, tokenize.NL): 65 if ttype not in (tokenize.NEWLINE, tokenize.NL):
66 last_ttext = ttext 66 last_ttext = ttext
67 yield ttype, ttext, (slineno, scol), (elineno, ecol), ltext 67 yield ttype, ttext, (slineno, scol), (elineno, ecol), ltext
68 last_lineno = elineno 68 last_lineno = elineno

eric ide

mercurial