Lines Matching refs:language_data

244     protected $language_data = array();  variable in GeSHi
614 return $this->language_data['LANG_NAME'] . ' (Unknown Language)';
616 return $this->language_data['LANG_NAME'];
998 foreach($this->language_data['STYLES']['KEYWORDS'] as $_key => $_value) {
1000 $this->language_data['STYLES']['KEYWORDS'][$_key] = $style;
1002 $this->language_data['STYLES']['KEYWORDS'][$_key] .= $style;
1007 $this->language_data['STYLES']['KEYWORDS'][$key] = $style;
1009 $this->language_data['STYLES']['KEYWORDS'][$key] .= $style;
1043 foreach($this->language_data['STYLES']['COMMENTS'] as $_key => $_value) {
1045 $this->language_data['STYLES']['COMMENTS'][$_key] = $style;
1047 $this->language_data['STYLES']['COMMENTS'][$_key] .= $style;
1052 $this->language_data['STYLES']['COMMENTS'][$key] = $style;
1054 $this->language_data['STYLES']['COMMENTS'][$key] .= $style;
1083 $this->language_data['STYLES']['ESCAPE_CHAR'][$group] = $style;
1085 $this->language_data['STYLES']['ESCAPE_CHAR'][$group] .= $style;
1115 $this->language_data['STYLES']['BRACKETS'][0] = $style;
1117 $this->language_data['STYLES']['BRACKETS'][0] .= $style;
1149 $this->language_data['STYLES']['SYMBOLS'][$group] = $style;
1151 $this->language_data['STYLES']['SYMBOLS'][$group] .= $style;
1187 $this->language_data['STYLES']['STRINGS'][$group] = $style;
1189 $this->language_data['STYLES']['STRINGS'][$group] .= $style;
1217 $this->language_data['STYLES']['SCRIPT'][$group] = $style;
1219 $this->language_data['STYLES']['SCRIPT'][$group] .= $style;
1236 $this->language_data['STYLES']['NUMBERS'][$group] = $style;
1238 $this->language_data['STYLES']['NUMBERS'][$group] .= $style;
1267 $this->language_data['STYLES']['METHODS'][$key] = $style;
1269 $this->language_data['STYLES']['METHODS'][$key] .= $style;
1297 $this->language_data['STYLES']['REGEXPS'][$key] = $style;
1299 $this->language_data['STYLES']['REGEXPS'][$key] .= $style;
1322 $this->language_data['CASE_SENSITIVE'][$key] = ($case) ? true : false;
1338 $this->language_data['CASE_KEYWORDS'] = $case;
1379 !isset($this->language_data['TAB_WIDTH'])) {
1382 return $this->language_data['TAB_WIDTH'];
1395 if (GESHI_MAYBE == $this->language_data['STRICT_MODE_APPLIES']) {
1572 if (!is_array($this->language_data['KEYWORDS'][$key])) {
1573 $this->language_data['KEYWORDS'][$key] = array();
1575 if (!in_array($word, $this->language_data['KEYWORDS'][$key])) {
1576 $this->language_data['KEYWORDS'][$key][] = $word;
1580 $subkey = count($this->language_data['CACHED_KEYWORD_LISTS'][$key]) - 1;
1581 … $this->language_data['CACHED_KEYWORD_LISTS'][$key][$subkey] .= '|' . preg_quote($word, '/');
1600 $key_to_remove = array_search($word, $this->language_data['KEYWORDS'][$key]);
1602 unset($this->language_data['KEYWORDS'][$key][$key_to_remove]);
1629 $this->language_data['KEYWORDS'][$key] = $words;
1631 $this->language_data['CASE_SENSITIVE'][$key] = $case_sensitive;
1632 $this->language_data['STYLES']['KEYWORDS'][$key] = $styles;
1649 unset($this->language_data['KEYWORDS'][$key]);
1651 unset($this->language_data['CASE_SENSITIVE'][$key]);
1652 unset($this->language_data['STYLES']['KEYWORDS'][$key]);
1655 unset($this->language_data['CACHED_KEYWORD_LISTS'][$key]);
1665 $this->language_data['CACHED_KEYWORD_LISTS'][$key] =
1666 $this->optimize_regexp_list($this->language_data['KEYWORDS'][$key]);
1668 if(isset($this->language_data['PARSER_CONTROL'])) {
1669 if(isset($this->language_data['PARSER_CONTROL']['KEYWORDS'])) {
1670 … if(isset($this->language_data['PARSER_CONTROL']['KEYWORDS']['SPACE_AS_WHITESPACE'])) {
1671 … $space_as_whitespace = $this->language_data['PARSER_CONTROL']['KEYWORDS']['SPACE_AS_WHITESPACE'];
1673 … if(isset($this->language_data['PARSER_CONTROL']['KEYWORDS'][$key]['SPACE_AS_WHITESPACE'])) {
1674 … if(isset($this->language_data['PARSER_CONTROL']['KEYWORDS'][$key]['SPACE_AS_WHITESPACE'])) {
1675 …$space_as_whitespace = $this->language_data['PARSER_CONTROL']['KEYWORDS'][$key]['SPACE_AS_WHITESPA…
1681 foreach($this->language_data['CACHED_KEYWORD_LISTS'][$key] as $rxk => $rxv) {
1682 $this->language_data['CACHED_KEYWORD_LISTS'][$key][$rxk] =
1749 $this->language_data['URLS'][$group] = $url;
1926 if(!isset($this->language_data['NUMBERS'])) {
1927 $this->language_data['NUMBERS'] = 0;
1930 if(is_array($this->language_data['NUMBERS'])) {
1931 $this->language_data['NUMBERS_CACHE'] = $this->language_data['NUMBERS'];
1933 $this->language_data['NUMBERS_CACHE'] = array();
1934 if(!$this->language_data['NUMBERS']) {
1935 $this->language_data['NUMBERS'] =
1940 for($i = 0, $j = $this->language_data['NUMBERS']; $j > 0; ++$i, $j>>=1) {
1942 if(isset($this->language_data['STYLES']['NUMBERS'][1<<$i])) {
1943 $this->language_data['STYLES']['NUMBERS'][$i] =
1944 $this->language_data['STYLES']['NUMBERS'][1<<$i];
1945 unset($this->language_data['STYLES']['NUMBERS'][1<<$i]);
1952 if(isset($this->language_data['STYLES']['NUMBERS'][$i])) {
1953 $this->language_data['NUMBERS_CACHE'][$i] = 1 << $i;
1955 if(!isset($this->language_data['NUMBERS_CACHE'][0])) {
1956 $this->language_data['NUMBERS_CACHE'][0] = 0;
1958 $this->language_data['NUMBERS_CACHE'][0] |= 1 << $i;
1974 if (empty($this->language_data)) {
1983 if ($this->lexic_permissions['SYMBOLS'] && !empty($this->language_data['SYMBOLS'])) {
1984 …$this->language_data['MULTIPLE_SYMBOL_GROUPS'] = count($this->language_data['STYLES']['SYMBOLS']) …
1986 $this->language_data['SYMBOL_DATA'] = array();
1989 foreach ($this->language_data['SYMBOLS'] as $key => $symbols) {
1993 if (!isset($this->language_data['SYMBOL_DATA'][$sym])) {
1994 $this->language_data['SYMBOL_DATA'][$sym] = $key;
2009 if (!isset($this->language_data['SYMBOL_DATA'][$symbols])) {
2010 $this->language_data['SYMBOL_DATA'][$symbols] = 0;
2036 $this->language_data['SYMBOL_SEARCH'] = implode("|", $symbol_preg);
2041 $this->language_data['CACHED_KEYWORD_LISTS'] = array();
2042 foreach (array_keys($this->language_data['KEYWORDS']) as $key) {
2051 $this->language_data['CACHE_BRACKET_MATCH'] = array('[', ']', '(', ')', '{', '}');
2052 if (!$this->use_classes && isset($this->language_data['STYLES']['BRACKETS'][0])) {
2053 $this->language_data['CACHE_BRACKET_REPLACE'] = array(
2054 '<| style="' . $this->language_data['STYLES']['BRACKETS'][0] . '">&#91;|>',
2055 '<| style="' . $this->language_data['STYLES']['BRACKETS'][0] . '">&#93;|>',
2056 '<| style="' . $this->language_data['STYLES']['BRACKETS'][0] . '">&#40;|>',
2057 '<| style="' . $this->language_data['STYLES']['BRACKETS'][0] . '">&#41;|>',
2058 '<| style="' . $this->language_data['STYLES']['BRACKETS'][0] . '">&#123;|>',
2059 '<| style="' . $this->language_data['STYLES']['BRACKETS'][0] . '">&#125;|>',
2063 $this->language_data['CACHE_BRACKET_REPLACE'] = array(
2078 if(!isset($this->language_data['NUMBERS_CACHE'])) {
2121 $this->language_data['NUMBERS_RXCACHE'] = array();
2122 foreach($this->language_data['NUMBERS_CACHE'] as $key => $rxdata) {
2137 $this->language_data['NUMBERS_RXCACHE'][$key] =
2141 if(!isset($this->language_data['PARSER_CONTROL']['NUMBERS']['PRECHECK_RX'])) {
2142 $this->language_data['PARSER_CONTROL']['NUMBERS']['PRECHECK_RX'] = '#\d#';
2168 if (empty($this->language_data)) {
2201 $this->language_data['COMMENT_MULTI'][GESHI_START_IMPORTANT] = GESHI_END_IMPORTANT;
2212 $delim_copy = $this->language_data['SCRIPT_DELIMITERS'];
2389 … $hq = isset($this->language_data['HARDQUOTE']) ? $this->language_data['HARDQUOTE'][0] : false;
2398 $escaped_escape_char = $this->hsc($this->language_data['ESCAPE_CHAR']);
2404 if (isset($this->language_data['PARSER_CONTROL'])) {
2405 if (isset($this->language_data['PARSER_CONTROL']['COMMENTS'])) {
2406 … if (isset($this->language_data['PARSER_CONTROL']['COMMENTS']['DISALLOWED_BEFORE'])) {
2407 … $sc_disallowed_before = $this->language_data['PARSER_CONTROL']['COMMENTS']['DISALLOWED_BEFORE'];
2409 if (isset($this->language_data['PARSER_CONTROL']['COMMENTS']['DISALLOWED_AFTER'])) {
2410 … $sc_disallowed_after = $this->language_data['PARSER_CONTROL']['COMMENTS']['DISALLOWED_AFTER'];
2418 foreach ($this->language_data['QUOTEMARKS'] as $quotemark) {
2452 $highlight_part = $this->language_data['HIGHLIGHT_STRICT_BLOCK'][$script_key];
2453 if ($this->language_data['STYLES']['SCRIPT'][$script_key] != '' &&
2458 $this->language_data['STYLES']['SCRIPT'][$script_key] != '') {
2459 … $attributes = ' style="' . $this->language_data['STYLES']['SCRIPT'][$script_key] . '"';
2494 … if (isset($this->language_data['COMMENT_REGEXP']) && $next_comment_regexp_pos < $i) {
2496 … foreach ($this->language_data['COMMENT_REGEXP'] as $comment_key => $regexp) {
2561 $string_key = array_search($char, $this->language_data['QUOTEMARKS']);
2562 if (!isset($this->language_data['STYLES']['STRINGS'][$string_key]) ||
2563 !isset($this->language_data['STYLES']['ESCAPE_CHAR'][$string_key])) {
2572 … $string_attributes = ' style="' . $this->language_data['STYLES']['STRINGS'][$string_key] . '"';
2582 if(empty($this->language_data['ESCAPE_REGEXP'])) {
2595 … if (isset($this->language_data['ESCAPE_REGEXP']) && $next_escape_regexp_pos < $start) {
2597 … foreach ($this->language_data['ESCAPE_REGEXP'] as $escape_key => $regexp) {
2632 if('' != $this->language_data['ESCAPE_CHAR']) {
2633 … $simple_escape = strpos($part, $this->language_data['ESCAPE_CHAR'], $start);
2656 … $escape_char_attributes = ' style="' . $this->language_data['STYLES']['ESCAPE_CHAR'][0] . '"';
2663 GeSHi::hsc($this->language_data['ESCAPE_CHAR']);
2712 …$escape_char_attributes = ' style="' . $this->language_data['STYLES']['ESCAPE_CHAR'][$escape_key] …
2747 … $string_attributes = ' style="' . $this->language_data['STYLES']['STRINGS']['HARD'] . '"';
2748 …$escape_char_attributes = ' style="' . $this->language_data['STYLES']['ESCAPE_CHAR']['HARD'] . '"';
2762 … while ($close_pos = strpos($part, $this->language_data['HARDQUOTE'][1], $start)) {
2764 …s->lexic_permissions['ESCAPE_CHAR'] && $part[$close_pos - 1] == $this->language_data['HARDCHAR'] &&
2767 foreach ($this->language_data['HARDESCAPE'] as $hardescape) {
2772 … && $part[$escape_char_pos - 1] == $this->language_data['HARDCHAR']) {
2799 … if ($this->lexic_permissions['ESCAPE_CHAR'] && $this->language_data['ESCAPE_CHAR']) {
2802 … while ($es_pos = strpos($string, $this->language_data['ESCAPE_CHAR'], $start)) {
2806 foreach ($this->language_data['HARDESCAPE'] as $hardescape) {
2819 && $string[$es_pos + $c] == $this->language_data['ESCAPE_CHAR']
2820 … && $string[$es_pos + $c + 1] == $this->language_data['ESCAPE_CHAR']) {
2861 … $attributes = ' style="' . $this->language_data['STYLES']['COMMENTS'][$comment['key']] . '"';
2888 … if (!empty($this->language_data['COMMENT_MULTI']) && $next_comment_multi_pos < $i) {
2890 foreach ($this->language_data['COMMENT_MULTI'] as $open => $close) {
2918 $close = $this->language_data['COMMENT_MULTI'][$open];
2928 … $attributes = ' style="' . $this->language_data['STYLES']['COMMENTS']['MULTI'] . '"';
2985 … if (!empty($this->language_data['COMMENT_SINGLE']) && $next_comment_single_pos < $i) {
2987 … foreach ($this->language_data['COMMENT_SINGLE'] as $comment_key => $comment_mark) {
3000 ($this->language_data['CASE_SENSITIVE'][GESHI_COMMENTS] &&
3003 (!$this->language_data['CASE_SENSITIVE'][GESHI_COMMENTS] &&
3021 … $comment_mark = $this->language_data['COMMENT_SINGLE'][$comment_key];
3035 … $attributes = ' style="' . $this->language_data['STYLES']['COMMENTS'][$comment_key] . '"';
3221 switch ($this->language_data['CASE_KEYWORDS']) {
3251 if (isset($this->language_data['URLS'][$k]) &&
3252 $this->language_data['URLS'][$k] != '') {
3258 if (!$this->language_data['CASE_SENSITIVE'][$k] &&
3259 strpos($this->language_data['URLS'][$k], '{FNAME}') !== false) {
3260 foreach ($this->language_data['KEYWORDS'][$k] as $word) {
3283 $this->language_data['URLS'][$k]
3303 …return ' style="' . call_user_func($this->language_data['STYLES']['REGEXPS'][$this->_rx_key], $ma…
3355 $quotemarks = preg_quote(implode($this->language_data['QUOTEMARKS']), '/');
3363 if (isset($this->language_data['PARSER_CONTROL'])) {
3364 if (isset($this->language_data['PARSER_CONTROL']['KEYWORDS'])) {
3366 … if (isset($this->language_data['PARSER_CONTROL']['KEYWORDS']['DISALLOWED_BEFORE'])) {
3367 … $disallowed_before = $this->language_data['PARSER_CONTROL']['KEYWORDS']['DISALLOWED_BEFORE'];
3370 if (isset($this->language_data['PARSER_CONTROL']['KEYWORDS']['DISALLOWED_AFTER'])) {
3371 … $disallowed_after = $this->language_data['PARSER_CONTROL']['KEYWORDS']['DISALLOWED_AFTER'];
3374 … $parser_control_pergroup = (count($this->language_data['PARSER_CONTROL']['KEYWORDS']) - $x) > 0;
3378 foreach (array_keys($this->language_data['KEYWORDS']) as $k) {
3382 $case_sensitive = $this->language_data['CASE_SENSITIVE'][$k];
3388 … if ($parser_control_pergroup && isset($this->language_data['PARSER_CONTROL']['KEYWORDS'][$k])) {
3389 … if (isset($this->language_data['PARSER_CONTROL']['KEYWORDS'][$k]['DISALLOWED_BEFORE'])) {
3391 … $this->language_data['PARSER_CONTROL']['KEYWORDS'][$k]['DISALLOWED_BEFORE'];
3394 … if (isset($this->language_data['PARSER_CONTROL']['KEYWORDS'][$k]['DISALLOWED_AFTER'])) {
3396 … $this->language_data['PARSER_CONTROL']['KEYWORDS'][$k]['DISALLOWED_AFTER'];
3404 …for ($set = 0, $set_length = count($this->language_data['CACHED_KEYWORD_LISTS'][$k]); $set < $set…
3405 $keywordset =& $this->language_data['CACHED_KEYWORD_LISTS'][$k][$set];
3419 foreach ($this->language_data['REGEXPS'] as $key => $regexp) {
3458 …if ($this->lexic_permissions['NUMBERS'] && preg_match($this->language_data['PARSER_CONTROL']['NUMB…
3462 foreach($this->language_data['NUMBERS_RXCACHE'] as $id => $regexp) {
3471 foreach (array_keys($this->language_data['KEYWORDS']) as $k) {
3474 (isset($this->language_data['STYLES']['KEYWORDS'][$k]) ?
3475 $this->language_data['STYLES']['KEYWORDS'][$k] : "") . '"';
3484 foreach($this->language_data['NUMBERS_RXCACHE'] as $id => $regexp) {
3490 $attributes = ' style="' . $this->language_data['STYLES']['NUMBERS'][$id] . '"';
3502 if ($this->lexic_permissions['METHODS'] && $this->language_data['OOLANG']) {
3506 if (isset($this->language_data['PARSER_CONTROL'])) {
3507 if (isset($this->language_data['PARSER_CONTROL']['OOLANG'])) {
3508 if (isset($this->language_data['PARSER_CONTROL']['OOLANG']['MATCH_BEFORE'])) {
3509 … $oolang_before = $this->language_data['PARSER_CONTROL']['OOLANG']['MATCH_BEFORE'];
3511 if (isset($this->language_data['PARSER_CONTROL']['OOLANG']['MATCH_AFTER'])) {
3512 … $oolang_after = $this->language_data['PARSER_CONTROL']['OOLANG']['MATCH_AFTER'];
3514 if (isset($this->language_data['PARSER_CONTROL']['OOLANG']['MATCH_SPACES'])) {
3515 … $oolang_spaces = $this->language_data['PARSER_CONTROL']['OOLANG']['MATCH_SPACES'];
3520 foreach ($this->language_data['OBJECT_SPLITTERS'] as $key => $splitter) {
3523 … $attributes = ' style="' . $this->language_data['STYLES']['METHODS'][$key] . '"';
3527 …tuff_to_parse = preg_replace("/($oolang_before)(" . preg_quote($this->language_data['OBJECT_SPLITT…
3539 $stuff_to_parse = str_replace( $this->language_data['CACHE_BRACKET_MATCH'],
3540 $this->language_data['CACHE_BRACKET_REPLACE'], $stuff_to_parse );
3545 if ($this->lexic_permissions['SYMBOLS'] && !empty($this->language_data['SYMBOLS'])) {
3547 …_match_all("/<\|(?:<DOT>|[^>])+>(?:(?!\|>).*?)\|>|<\/a>|(?:" . $this->language_data['SYMBOL_SEARCH…
3569 if ($this->language_data['MULTIPLE_SYMBOL_GROUPS']) {
3572 …preg_match_all("/" . $this->language_data['SYMBOL_SEARCH'] . "/", $symbol_match, $sym_match_syms, …
3575 if (isset($this->language_data['SYMBOL_DATA'][$sym_ms])
3576 && ($this->language_data['SYMBOL_DATA'][$sym_ms] != $old_sym)) {
3580 $old_sym = $this->language_data['SYMBOL_DATA'][$sym_ms];
3582 … $symbol_hl .= '<| style="' . $this->language_data['STYLES']['SYMBOLS'][$old_sym] . '">';
3598 … $symbol_hl = '<| style="' . $this->language_data['STYLES']['SYMBOLS'][0] . '">';
3615 foreach (array_keys($this->language_data['REGEXPS']) as $key) {
3617 if (is_callable($this->language_data['STYLES']['REGEXPS'][$key])) {
3624 … $attributes = ' style="' . $this->language_data['STYLES']['REGEXPS'][$key] . '"';
3626 if (is_array($this->language_data['REGEXPS'][$key]) &&
3627 array_key_exists(GESHI_CLASS, $this->language_data['REGEXPS'][$key])) {
3629 $this->language_data['REGEXPS'][$key][GESHI_CLASS] . '"';
3739 $language_data = array();
3746 $this->language_data = $language_data;
3749 $this->strict_mode = $this->language_data['STRICT_MODE_APPLIES'];
3753 foreach (array_keys($this->language_data['KEYWORDS']) as $key) {
3754 if (!empty($this->language_data['KEYWORDS'][$key])) {
3761 foreach (array_keys($this->language_data['COMMENT_SINGLE']) as $key) {
3764 foreach (array_keys($this->language_data['REGEXPS']) as $key) {
3772 if (!empty($this->language_data['PARSER_CONTROL']['ENABLE_FLAGS'])) {
3773 foreach ($this->language_data['PARSER_CONTROL']['ENABLE_FLAGS'] as $flag => $value) {
3792 unset($this->language_data['PARSER_CONTROL']['ENABLE_FLAGS']);
3797 if(!isset($this->language_data['HARDCHAR'])) {
3798 $this->language_data['HARDCHAR'] = $this->language_data['ESCAPE_CHAR'];
3814 $this->language_data['STYLES'] =
3815 $this->merge_arrays($this->language_data['STYLES'], $style_data);
4214 $replacements[] = $replacements[] = $this->language_data['LANG_NAME'];
4351 if(!isset($this->language_data['NUMBERS_CACHE'])) {
4452 foreach ($this->language_data['STYLES']['KEYWORDS'] as $group => $styles) {
4459 foreach ($this->language_data['STYLES']['COMMENTS'] as $group => $styles) {
4463 (!empty($this->language_data['COMMENT_REGEXP']) &&
4464 !empty($this->language_data['COMMENT_REGEXP'][$group])))) {
4468 foreach ($this->language_data['STYLES']['ESCAPE_CHAR'] as $group => $styles) {
4477 foreach ($this->language_data['STYLES']['BRACKETS'] as $group => $styles) {
4482 foreach ($this->language_data['STYLES']['SYMBOLS'] as $group => $styles) {
4487 foreach ($this->language_data['STYLES']['STRINGS'] as $group => $styles) {
4496 foreach ($this->language_data['STYLES']['NUMBERS'] as $group => $styles) {
4501 foreach ($this->language_data['STYLES']['METHODS'] as $group => $styles) {
4507 foreach ($this->language_data['STYLES']['SCRIPT'] as $group => $styles) {
4512 foreach ($this->language_data['STYLES']['REGEXPS'] as $group => $styles) {
4516 if (is_array($this->language_data['REGEXPS'][$group]) &&
4517 array_key_exists(GESHI_CLASS, $this->language_data['REGEXPS'][$group])) {
4519 $stylesheet .= $this->language_data['REGEXPS'][$group][GESHI_CLASS];