Browse Source

Repl: allow identifiers whith one single character

Manfred Kroehnert 11 năm trước cách đây
mục cha
commit
cea7b4a38d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      cli/st/AmberCli.st

+ 1 - 1
cli/st/AmberCli.st

@@ -1027,7 +1027,7 @@ instanceVariableNamesFor: aClass
 !
 
 isIdentifier: aString
-	^ aString match: '^[a-z_]\w+$' asRegexp
+	^ aString match: '^[a-z_]\w*$' asRegexp
 !
 
 isVariableDefined: aString