fix tab completion of new inspect variations

This commit is contained in:
Mark Harrah 2012-01-09 08:00:29 -05:00
parent 053f2a4ea0
commit 79bbe8f8a4
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ object BuiltinCommands
def allKeyParser(s: State): Parser[AttributeKey[_]] =
{
val keyMap = Project.structure(s).index.keyMap
token((Space ~> ID) !!! "Expected key" examples keyMap.keySet) flatMap { key => Act.getKey(keyMap, key, idFun) }
token(Space ~> (ID !!! "Expected key" examples keyMap.keySet)) flatMap { key => Act.getKey(keyMap, key, idFun) }
}
val spacedKeyParser = (s: State) => Act.requireSession(s, token(Space) ~> Act.scopedKeyParser(s))
val optSpacedKeyParser = (s: State) => spacedKeyParser(s).?