eric7/DebugClients/Python/coverage/phystokens.py

branch
eric7-maintenance
changeset 9111
4ac66b6c33a4
parent 8775
0802ae193343
equal deleted inserted replaced
9049:2b9bd8f97576 9111:4ac66b6c33a4
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