Show More
@@ -170,9 +170,9 b' class IPythonTracebackLexer(DelegatingLexer):' | |||||
170 | def __init__(self, **options): |
|
170 | def __init__(self, **options): | |
171 | self.python3 = get_bool_opt(options, 'python3', False) |
|
171 | self.python3 = get_bool_opt(options, 'python3', False) | |
172 | if self.python3: |
|
172 | if self.python3: | |
173 |
self.aliases = ['ipythontb |
|
173 | self.aliases = ['ipython3tb'] | |
174 | else: |
|
174 | else: | |
175 |
self.aliases = ['ipythontb |
|
175 | self.aliases = ['ipython2tb', 'ipythontb'] | |
176 |
|
176 | |||
177 | if self.python3: |
|
177 | if self.python3: | |
178 | IPyLexer = IPython3Lexer |
|
178 | IPyLexer = IPython3Lexer | |
@@ -189,7 +189,7 b' class IPythonConsoleLexer(Lexer):' | |||||
189 |
|
189 | |||
190 | .. code-block:: rst |
|
190 | .. code-block:: rst | |
191 |
|
191 | |||
192 | .. code-block:: ipythoncon |
|
192 | .. code-block:: ipythonconsole | |
193 |
|
193 | |||
194 | In [1]: a = 'foo' |
|
194 | In [1]: a = 'foo' | |
195 |
|
195 | |||
@@ -206,7 +206,7 b' class IPythonConsoleLexer(Lexer):' | |||||
206 |
|
206 | |||
207 | .. code-block:: rst |
|
207 | .. code-block:: rst | |
208 |
|
208 | |||
209 | .. code-block:: ipythoncon |
|
209 | .. code-block:: ipythonconsole | |
210 |
|
210 | |||
211 | In [1]: raise Exception |
|
211 | In [1]: raise Exception | |
212 | --------------------------------------------------------------------------- |
|
212 | --------------------------------------------------------------------------- | |
@@ -218,7 +218,7 b' class IPythonConsoleLexer(Lexer):' | |||||
218 |
|
218 | |||
219 | """ |
|
219 | """ | |
220 | name = 'IPython console session' |
|
220 | name = 'IPython console session' | |
221 | aliases = ['ipythoncon'] |
|
221 | aliases = ['ipythonconsole'] | |
222 | mimetypes = ['text/x-ipython-console'] |
|
222 | mimetypes = ['text/x-ipython-console'] | |
223 |
|
223 | |||
224 | # The regexps used to determine what is input and what is output. |
|
224 | # The regexps used to determine what is input and what is output. | |
@@ -260,9 +260,9 b' class IPythonConsoleLexer(Lexer):' | |||||
260 | """ |
|
260 | """ | |
261 | self.python3 = get_bool_opt(options, 'python3', False) |
|
261 | self.python3 = get_bool_opt(options, 'python3', False) | |
262 | if self.python3: |
|
262 | if self.python3: | |
263 |
self.aliases = ['ipython |
|
263 | self.aliases = ['ipython3console'] | |
264 | else: |
|
264 | else: | |
265 |
self.aliases = ['ipython |
|
265 | self.aliases = ['ipython2console', 'ipythonconsole'] | |
266 |
|
266 | |||
267 | in1_regex = options.get('in1_regex', self.in1_regex) |
|
267 | in1_regex = options.get('in1_regex', self.in1_regex) | |
268 | in2_regex = options.get('in2_regex', self.in2_regex) |
|
268 | in2_regex = options.get('in2_regex', self.in2_regex) |
General Comments 0
You need to be logged in to leave comments.
Login now