summaryrefslogtreecommitdiff
path: root/pygments/lexers/matlab.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2021-02-14 19:37:33 +0100
committerGeorg Brandl <georg@python.org>2021-02-14 19:38:52 +0100
commit64ecc8f50d87c71e16fa133a1eabe5b0a1aa4a4c (patch)
tree6d0bbebf8448235fcb8d6c529136a593111cba0d /pygments/lexers/matlab.py
parentf5472bbb595e617ed3d491c4fc3610d8d69e9aa9 (diff)
downloadpygments-git-64ecc8f50d87c71e16fa133a1eabe5b0a1aa4a4c.tar.gz
minor formatting fixups for new lexers
Diffstat (limited to 'pygments/lexers/matlab.py')
-rw-r--r--pygments/lexers/matlab.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pygments/lexers/matlab.py b/pygments/lexers/matlab.py
index 7a72eedc..7e091022 100644
--- a/pygments/lexers/matlab.py
+++ b/pygments/lexers/matlab.py
@@ -20,7 +20,6 @@ from pygments.lexers import _scilab_builtins
__all__ = ['MatlabLexer', 'MatlabSessionLexer', 'OctaveLexer', 'ScilabLexer']
-
class MatlabLexer(RegexLexer):
"""
For Matlab source code.
@@ -2783,8 +2782,8 @@ class MatlabSessionLexer(Lexer):
# Set leading spaces with the length of the prompt to be a generic prompt
# This keeps code aligned when prompts are removed, say with some Javascript
if line.startswith(' '*line_start):
- insertions.append((len(curcode),
- [(0, Generic.Prompt, line[:line_start])]))
+ insertions.append(
+ (len(curcode), [(0, Generic.Prompt, line[:line_start])]))
curcode += line[line_start:]
else:
curcode += line