Skip to content

Commit 12d9fd6

Browse files
committed
More implementation.
1 parent 400a9c4 commit 12d9fd6

31 files changed

+2278
-2061
lines changed

data/ruby/gdb/command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ def parse_flag(self):
107107

108108
# If next character is not another flag and not end of string, it might be a value
109109
if self.position < self.length and not (self.peek() == '-' and self.peek(1) == '-'):
110-
# Try to parse a value (number or word)
111-
if self.peek() and (self.peek().isdigit() or self.peek().isalpha()):
110+
# Try to parse a value - it could start with $, digit, or letter
111+
if self.peek() and not self.peek().isspace():
112112
value = ''
113113
while self.position < self.length and not self.argument_string[self.position].isspace():
114114
if self.peek() == '-' and self.peek(1) == '-':

0 commit comments

Comments
 (0)