Skip to content

Commit 0ccb091

Browse files
committed
'replace'
1 parent e3dcaba commit 0ccb091

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

py/ec_core.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,11 @@ def k_input(self, command):
409409
# get the variable
410410
if self.nextIsSymbol():
411411
command['target'] = self.getToken()
412-
command['prompt'] = ': '
412+
value = {}
413+
value['type'] = 'text'
414+
value['numeric'] = 'false'
415+
value['content'] = ': '
416+
command['prompt'] = value
413417
if self.peek() == 'with':
414418
self.nextToken()
415419
command['prompt'] = self.nextValue()
@@ -646,7 +650,8 @@ def r_read(self, command):
646650

647651
def k_replace(self, command):
648652
original = self.nextValue()
649-
if self.nextIs('with'):
653+
if self.peek() == 'with':
654+
self.nextToken()
650655
replacement = self.nextValue()
651656
if self.nextIs('in'):
652657
if self.nextIsSymbol():

0 commit comments

Comments
 (0)