Stir together tomatoes, sugar, and herbs in a large bowl until combined well. Cook pasta in boiling salted water until al dente, then drain. Add hot pasta to tomato mixture. Cook garlic in olive oil in a 1-quart saucepan over moderately high heat, stirring, 1 minute. Add garlic with oil to pasta and tomatoes and toss to combine. Season with salt and pepper.