(self, var_type, line)
| 131 | # mapped_value: Python value/object from the consumed token(s) |
| 132 | # tail: the rest of input line |
| 133 | def bind_var(self, var_type, line): |
| 134 | if var_type == 'keyword': |
| 135 | return None, self.split_var(var_type, line)[1] |
| 136 | |
| 137 | raise self.InternalError('type "%s" is undefined' % var_type) |
| 138 | |
| 139 | # Compare a command with a user-typed line. |
| 140 | # It returns (match_type, candidates, syntax_token, score). |