Fix %w and %W literal grammar