]> git.pld-linux.org Git - packages/python-pygments.git/blob - python-pygments-py3.7.patch
18ac39c15446ce196998b631bb557892a67026f1
[packages/python-pygments.git] / python-pygments-py3.7.patch
1 --- Pygments-2.2.0/pygments/lexers/lisp.py.orig 2017-01-22 22:01:32.000000000 +0100
2 +++ Pygments-2.2.0/pygments/lexers/lisp.py      2018-07-18 21:48:02.153318157 +0200
3 @@ -2327,13 +2327,13 @@
4              token = Name.Function if token == Literal else token
5              yield index, token, value
6  
7 -        raise StopIteration
8 +        return
9  
10      def _process_signature(self, tokens):
11          for index, token, value in tokens:
12              if token == Literal and value == '}':
13                  yield index, Punctuation, value
14 -                raise StopIteration
15 +                return
16              elif token in (Literal, Name.Function):
17                  token = Name.Variable if value.istitle() else Keyword.Type
18              yield index, token, value
19 --- Pygments-2.2.0/pygments/lexers/sql.py.orig  2017-01-22 22:01:32.000000000 +0100
20 +++ Pygments-2.2.0/pygments/lexers/sql.py       2018-07-18 21:49:02.033317475 +0200
21 @@ -347,7 +347,10 @@
22              # Emit the output lines
23              out_token = Generic.Output
24              while 1:
25 -                line = next(lines)
26 +                try:
27 +                    line = next(lines)
28 +                except StopIteration:
29 +                    return
30                  mprompt = re_prompt.match(line)
31                  if mprompt is not None:
32                      # push the line back to have it processed by the prompt
This page took 0.048041 seconds and 2 git commands to generate.