Skip to content

Commit d5d815f

Browse files
committed
Include GNU Readline code
We may want to come back to this.
1 parent c6ce29a commit d5d815f

File tree

3 files changed

+385
-11
lines changed

3 files changed

+385
-11
lines changed

mathicsscript/completion.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from mathics.core.expression import strip_context
2323
from mathics_scanner import named_characters
24-
from mathics_pygments.lexer import MathematicaLexer, Regex
24+
from mathics_pygments.lexer import Regex
2525
from prompt_toolkit.completion import CompleteEvent, Completion, WordCompleter
2626
from prompt_toolkit.document import Document
2727

@@ -53,10 +53,9 @@ def get_datadir():
5353

5454

5555
class MathicsCompleter(WordCompleter):
56-
def __init__(self, definitions, lexer):
56+
def __init__(self, definitions):
5757
self.definitions = definitions
5858
self.completer = WordCompleter([])
59-
self.lexer = lexer
6059
self.named_characters = [name + "]" for name in named_characters.keys()]
6160

6261
# From WordCompleter, adjusted with default values

0 commit comments

Comments
 (0)