Home | History | Annotate | Download | only in contrib

Lines Matching full:keywords

309             if(!isset($language_data['KEYWORDS'])) {
310 report_error(TYPE_ERROR, 'Language file contains no $language_data[\'KEYWORDS\'] structure to check!');
311 } else if (!is_array($language_data['KEYWORDS'])) {
312 report_error(TYPE_ERROR, 'Language file contains a $language_data[\'KEYWORDS\'] structure which is not an array!');
314 foreach($language_data['KEYWORDS'] as $kw_key => $kw_value) {
316 report_error(TYPE_WARNING, "Language file contains an key '$kw_key' in \$language_data['KEYWORDS'] that is not integer!");
422 $style_arrays = array('KEYWORDS', 'COMMENTS', 'ESCAPE_CHAR',
448 foreach($language_data['KEYWORDS'] as $key => $keywords) {
455 if(empty($keywords)) {
456 report_error(TYPE_WARNING, "Language file contains an empty keyword list in \$language_data['KEYWORDS'] for group $key!");
458 foreach($keywords as $id => $kw) {
460 report_error(TYPE_WARNING, "Language file contains an non-string entry at \$language_data['KEYWORDS'][$key][$id]!");
462 report_error(TYPE_ERROR, "Language file contains an empty string entry at \$language_data['KEYWORDS'][$key][$id]!");
464 report_error(TYPE_NOTICE, "Language file contains an keyword ('$kw') at \$language_data['KEYWORDS'][$key][$id] which seems to be better suited for the symbols section!");
467 if(count($keywords) != count(array_unique($keywords))) {
468 $kw_diffs = array_count_values($keywords);
471 report_error(TYPE_WARNING, "Language file contains per-group duplicate keyword '$kw' in \$language_data['KEYWORDS'][$key]!");
480 foreach($language_data['KEYWORDS'] as $key => $keywords) {
481 foreach($language_data['KEYWORDS'] as $key2 => $keywords2) {
485 $kw_diffs = array_intersect($keywords, $keywords2);
487 if(isset($language_data['PARSER_CONTROL']['KEYWORDS'])) {
493 if(isset($language_data['PARSER_CONTROL']['KEYWORDS']['DISALLOWED_BEFORE'])) {
494 $g1_pre = $language_data['PARSER_CONTROL']['KEYWORDS']['DISALLOWED_BEFORE'];
495 $g2_pre = $language_data['PARSER_CONTROL']['KEYWORDS']['DISALLOWED_BEFORE'];
497 if(isset($language_data['PARSER_CONTROL']['KEYWORDS']['DISALLOWED_AFTER'])) {
498 $g1_post = $language_data['PARSER_CONTROL']['KEYWORDS']['DISALLOWED_AFTER'];
499 $g2_post = $language_data['PARSER_CONTROL']['KEYWORDS']['DISALLOWED_AFTER'];
502 if(isset($language_data['PARSER_CONTROL']['KEYWORDS'][$key]['DISALLOWED_BEFORE'])) {
503 $g1_pre = $language_data['PARSER_CONTROL']['KEYWORDS'][$key]['DISALLOWED_BEFORE'];
505 if(isset($language_data['PARSER_CONTROL']['KEYWORDS'][$key]['DISALLOWED_AFTER'])) {
506 $g1_post = $language_data['PARSER_CONTROL']['KEYWORDS'][$key]['DISALLOWED_AFTER'];
509 if(isset($language_data['PARSER_CONTROL']['KEYWORDS'][$key2]['DISALLOWED_BEFORE'])) {
510 $g2_pre = $language_data['PARSER_CONTROL']['KEYWORDS'][$key2]['DISALLOWED_BEFORE'];
512 if(isset($language_data['PARSER_CONTROL']['KEYWORDS'][$key2]['DISALLOWED_AFTER'])) {
513 $g2_post = $language_data['PARSER_CONTROL']['KEYWORDS'][$key2]['DISALLOWED_AFTER'];
520 report_error(TYPE_WARNING, "Language file contains cross-group duplicate keyword '$kw' in \$language_data['KEYWORDS'][$key] and \$language_data['KEYWORDS'][$key2]!");
524 foreach($language_data['CASE_SENSITIVE'] as $key => $keywords) {
525 if(!isset($language_data['KEYWORDS'][$key]) && $key != GESHI_COMMENTS) {
529 foreach($language_data['URLS'] as $key => $keywords) {
530 if(!isset($language_data['KEYWORDS'][$key])) {
534 foreach($language_data['STYLES']['KEYWORDS'] as $key => $keywords) {
535 if(!isset($language_data['KEYWORDS'][$key])) {
536 report_error(TYPE_WARNING, "Language file contains an superfluous \$language_data['STYLES']['KEYWORDS'] specification for non-existing keyword group $key!");