components/code/src/command.rules.js
// A Name Token which will decorate the state with a `name`.
A Name Token which will decorate the state with a `name`.
A Name Token which will decorate the state with a ` name ` .
function name(style) {
		return {
			style: style,
			match: function match(token) {
				return token.kind === 'Name';
			},
			update: function update(state, token) {
				state.name = token.value;
			}
		};
	}
function name ( style ) { return { style : style , match : function match ( token ) { return token . kind === 'Name' ; } , update : function update ( state , token ) { state . name = token . value ; } } ; }
A Name Token which will decorate the state with a `name`.
A Name Token which will decorate the state with a ` name ` .