module.exports = grammar({
  name: 'ruby',

  rules: {
	_terminator: $ => choice('\n', ';'),
  }
});

module.exports = grammar({
  name: 'ruby',

  rules: {
	identifier: $ => seq(rep(choice('@', '$')), /[a-zA-Z_][a-zA-Z0-9_]*/),

	_terminator: $ => choice('\n', ';'),
  }
});

Define identifiers.