ソースを参照

Repl: allow identifiers whith one single character

Manfred Kroehnert 10 年 前
コミット
cea7b4a38d
1 ファイル変更1 行追加1 行削除
  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