summaryrefslogtreecommitdiff
path: root/pygments/lexers/make.py
diff options
context:
space:
mode:
authorMax Horn <max@quendi.de>2022-08-19 22:19:14 +0200
committerGitHub <noreply@github.com>2022-08-19 22:19:14 +0200
commitf4976545a11bb126cf201b5942f543359a03cc58 (patch)
tree385e265bc62499f1fe447cc460d6eef0793d6532 /pygments/lexers/make.py
parentadb90dc65f2f211675af5be27d2a7efdf96c6f44 (diff)
downloadpygments-git-f4976545a11bb126cf201b5942f543359a03cc58.tar.gz
Add GAP console session mode (#2211)
* Add GAP console session mode This is also appropriate for GAP .tst files. Add `analyse_text` methods for `ScilabLexer` and `GAPConsoleLexer` to distinguish Scilab and GAP .tst files * Use explicit name for 'keepends' argument to splitlines
Diffstat (limited to 'pygments/lexers/make.py')
-rw-r--r--pygments/lexers/make.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/make.py b/pygments/lexers/make.py
index d9027f3c..e573d519 100644
--- a/pygments/lexers/make.py
+++ b/pygments/lexers/make.py
@@ -44,7 +44,7 @@ class MakefileLexer(Lexer):
def get_tokens_unprocessed(self, text):
ins = []
- lines = text.splitlines(True)
+ lines = text.splitlines(keepends=True)
done = ''
lex = BaseMakefileLexer(**self.options)
backslashflag = False