33                $this->inbcomment       = 0;
 
   34                $this->inwhitespace     = 1;
 
   36                $this->currquotechar    = 
"";
 
   41                $this->lineselect       = 0;
 
   42                $this->closingstrings   = array();
 
   45                $this->validkeys = array();
 
   47                foreach(array_keys(
$lang->keywords) as $key)
 
   50                                $this->validkeys[strtolower($key)] = $key;
 
   52                                $this->validkeys[$key] = $key;
 
   54                $this->alldelims = array_merge(
$lang->delimiters, 
$lang->stringchars);
 
   57                $this->lcolengths = array();
 
   58                foreach(
$lang->linecommenton as $lco)
 
   60                        $this->lcolengths[$lco] = strlen($lco);
 
   62                foreach(
$lang->blockcommenton as $bco)
 
   64                        $this->bcolengths[$bco] = strlen($bco);
 
   66                foreach(
$lang->blockcommentoff as $bcf)
 
   68                        $this->bcflengths[$bcf] = strlen($bcf);
 
   72                $this->bcomatches = array();
 
   73                $this->startingbkonchars = array();
 
   74                for($i=0; $i<
sizeof(
$lang->blockcommenton); $i++)
 
   76                        $bco = 
$lang->blockcommenton[$i];
 
   77                        if (!isset($this->bcomatches[$bco])) $this->bcomatches[$bco] = array();
 
   78                        array_push($this->bcomatches[$bco], 
$lang->blockcommentoff[$i]);
 
   79                        array_push($this->startingbkonchars, $bco[0]);
 
   86                if (isset(
$lang->prepro)) $this->preprolength = strlen(
$lang->prepro);
 
   90                $this->code_parts = explode(
"_WORD_", $output->code);
 
   91                $this->linecomment_parts = explode(
"_WORD_", $output->linecomment);
 
   92                $this->blockcomment_parts = explode(
"_WORD_", $output->blockcomment);
 
   93                $this->prepro_parts = explode(
"_WORD_", $output->prepro);
 
   94                $this->select_parts = explode(
"_WORD_", $output->select);
 
   95                $this->quote_parts = explode(
"_WORD_", $output->quote);
 
   99                        $varname = 
"category_".$currcat;
 
  100                        if (isset($output->{$varname}))
 
  102                                $this->category_parts[$currcat] = explode(
"_WORD_", $output->{$varname});
 
  105                } 
while (isset($output->{$varname}));
 
from_language($lang, $output)