Actually, its a misconception that plants need dark to properly process sugars. There are photo-dependent (light) and photo-independent (dark) reactions that take place during photosynthesis. The "dark" reactions are a misnomer, as they do not require dark but merely do not require the presence of light.
But yeah, some plants require darkness for different reasons. Some need darkness for flowering, others, such as certain cacti, only absorb CO2 at night, keeping the stomata closed during the daytime to reduce water loss. However, the actual food production of the plant goes on indefinitely under light I believe.
And a nice little chart for ya:
Extra info for those who care: Carbon fixation is the process whereby CO2 is converted into organic compounds. Plants fall into one of 3 categories based on how/when they accomplish this:
C3: Most plants, including peppers, are C3 and absorb all their co2 during the day.
C4: plants from hot, bright climates also absorb co2 during the day, but do so much quicker and thus lose less water through transpiration.
CAM: plants from arid regions, ie: cacti, absorb CO2 at night and convert it to organic acids, which are converted back to CO2 during the day when the stomata are closed. These are the most water efficient, since all transpiration takes place at night when it's cooler.