protected function show_pending(&$rest, &$s = null, $i = null) { if (strlen($rest) == 0) { return; } $c = $rest[0]; if ($this->isIdentifierChar($c)) { $needEnd = true; if ($c >= 'A' && $c <= 'Z' || $c == '_') { $this->initTag(self::c_variable); } elseif ($c >= 'a' && $c <= 'z') { if ($s != null && $this->isNextOpenParenthesis($s, $i) || $rest == 'is') { $this->initTag(self::c_reserved); } else { $this->initTag(self::c_macro); } } else { $needEnd = false; } parent::show_pending($rest); if ($needEnd) { echo self::endTag; } } else { parent::show_pending($rest); } }
protected function show_pending(&$rest) { if (array_key_exists($rest, $this->reserved)) { $this->initTag(self::c_reserved); parent::show_pending($rest); echo self::endTag; } else { parent::show_pending($rest); } }
protected function show_pending(&$rest) { $lower = strtolower($rest); if (array_key_exists($lower, $this->reserved)) { $this->initTag(self::c_reserved); parent::show_pending($rest); echo self::endTag; } else { parent::show_pending($rest); } $this->previous_pending = $lower; $rest = ''; }
protected function show_pending(&$rest) { if (array_key_exists($rest, $this->reserved)) { $this->initTag(self::c_reserved); parent::show_pending($rest); echo self::endTag; } elseif (strlen($rest) > 0 && $rest[0] == '_') { $this->initTag(self::c_variable); parent::show_pending($rest); echo self::endTag; } else { parent::show_pending($rest); } }
protected function show_pending(&$rest) { $upper = strtoupper($rest); if (array_key_exists($upper, $this->reserved)) { $this->initTag(self::c_reserved); parent::show_pending($rest); echo self::endTag; } elseif (array_key_exists($upper, $this->keywords)) { $this->initTag(self::c_variable); parent::show_pending($rest); echo self::endTag; } else { parent::show_pending($rest); } }
protected function show_pending(&$rest) { if (array_key_exists($rest, $this->reserved)) { $this->initTag(self::c_reserved); parent::show_pending($rest); echo self::endTag; } else { if (array_key_exists($rest, $this->predefined_vars)) { $this->initTag(self::c_variable); parent::show_pending($rest); echo self::endTag; } else { parent::show_pending($rest); } } $rest = ''; }
protected function show_pending(&$rest) { //TODO FIX hover highlight $lower = strtolower($rest); if (array_key_exists($lower, $this->reserved)) { /* if($lower == 'else' || $lower == 'end'){ $this->endHover(); }*/ $this->initTag(self::c_reserved); parent::show_pending($rest); echo self::endTag; /* if(($lower == 'begin' || $lower == 'loop' || $lower == 'else' || $lower == 'is') && ($this->previous_pending != 'end')){ $this->initHover(); }*/ } else { parent::show_pending($rest); } $this->previous_pending = $lower; $rest = ''; }