eric6/ThirdParty/Pygments/pygments/lexers/dylan.py

changeset 7701
25f42e208e08
parent 7547
21b0534faebc
child 7983
54c5cfbb1e29
equal deleted inserted replaced
7700:a3cf077a8db3 7701:25f42e208e08
3 pygments.lexers.dylan 3 pygments.lexers.dylan
4 ~~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~~
5 5
6 Lexers for the Dylan language. 6 Lexers for the Dylan language.
7 7
8 :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS.
9 :license: BSD, see LICENSE for details. 9 :license: BSD, see LICENSE for details.
10 """ 10 """
11 11
12 import re 12 import re
13 13
275 insertions.append((len(curcode), 275 insertions.append((len(curcode),
276 [(0, Generic.Prompt, line[:end])])) 276 [(0, Generic.Prompt, line[:end])]))
277 curcode += line[end:] 277 curcode += line[end:]
278 else: 278 else:
279 if curcode: 279 if curcode:
280 for item in do_insertions(insertions, 280 yield from do_insertions(insertions,
281 dylexer.get_tokens_unprocessed(curcode)): 281 dylexer.get_tokens_unprocessed(curcode))
282 yield item
283 curcode = '' 282 curcode = ''
284 insertions = [] 283 insertions = []
285 yield match.start(), Generic.Output, line 284 yield match.start(), Generic.Output, line
286 if curcode: 285 if curcode:
287 for item in do_insertions(insertions, 286 yield from do_insertions(insertions,
288 dylexer.get_tokens_unprocessed(curcode)): 287 dylexer.get_tokens_unprocessed(curcode))
289 yield item

eric ide

mercurial