浏览代码

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