Heat the olive oil in a saucepan over medium heat. Add the garlic and gently cook until just soft, about 3 minutes. Add the basil, oregano, tomatoes, salt, and pepper. Cover and bring to a boil, then lower heat to a simmer for 15 to 20 minutes. Stir in the parsley just before serving.