jablonka.czprosek.czf

websvn

Subversion Repositories:
[/] [lib/] [geshi/] [cpp-qt.php] - Diff between revs 1 and 3

Show entire file Ignore whitespace

Rev 1 Rev 3
Line 2... Line 2...
/************************************************************************************* /*************************************************************************************
* cpp.php * cpp.php
* ------- * -------
* Author: Iulian M * Author: Iulian M
* Copyright: (c) 2006 Iulian M * Copyright: (c) 2006 Iulian M
* Release Version: 1.0.8.1 * Release Version: 1.0.8.3
* Date Started: 2004/09/27 * Date Started: 2004/09/27
* *
* C++ (with QT extensions) language file for GeSHi. * C++ (with QT extensions) language file for GeSHi.
* *
* CHANGES * CHANGES
Line 39... Line 39...
   
$language_data = array ( $language_data = array (
'LANG_NAME' => 'C++ (QT)', 'LANG_NAME' => 'C++ (QT)',
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), 'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
'COMMENT_MULTI' => array('/*' => '*/'), 'COMMENT_MULTI' => array('/*' => '*/'),
//Multiline-continued Singleline comments 'COMMENT_REGEXP' => array(
'COMMENT_REGEXP' => array(1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m'), //Multiline-continued single-line comments
  1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m',
  //Multiline-continued preprocessor define
  2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m'
  ),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array("'", '"'), 'QUOTEMARKS' => array("'", '"'),
'ESCAPE_CHAR' => '\\', 'ESCAPE_CHAR' => '',
  'ESCAPE_REGEXP' => array(
  //Simple Single Char Escapes
  1 => "#\\\\[abfnrtv\\'\"?\n]#i",
  //Hexadecimal Char Specs
  2 => "#\\\\x[\da-fA-F]{2}#",
  //Hexadecimal Char Specs
  3 => "#\\\\u[\da-fA-F]{4}#",
  //Hexadecimal Char Specs
  4 => "#\\\\U[\da-fA-F]{8}#",
  //Octal Char Specs
  5 => "#\\\\[0-7]{1,3}#"
  ),
'NUMBERS' => 'NUMBERS' =>
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B | GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B |
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI | GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI |
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO, GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
'KEYWORDS' => array( 'KEYWORDS' => array(
Line 205... Line 221...
'SYMBOLS' => array( 'SYMBOLS' => array(
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':', ',', ';', '|', '<', '>' '(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':', ',', ';', '|', '<', '>'
), ),
'CASE_SENSITIVE' => array( 'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false, GESHI_COMMENTS => false,
1 => false, 1 => true,
2 => false, 2 => true,
3 => false, 3 => true,
4 => false, 4 => true,
5 => true, 5 => true,
), ),
'STYLES' => array( 'STYLES' => array(
'KEYWORDS' => array( 'KEYWORDS' => array(
1 => 'color: #000000; font-weight:bold;', 1 => 'color: #000000; font-weight:bold;',
Line 225... Line 241...
1 => 'color: #888888;', 1 => 'color: #888888;',
2 => 'color: #006E28;', 2 => 'color: #006E28;',
'MULTI' => 'color: #888888; font-style: italic;' 'MULTI' => 'color: #888888; font-style: italic;'
), ),
'ESCAPE_CHAR' => array( 'ESCAPE_CHAR' => array(
0 => 'color: #FF80E0; font-weight: bold;' 0 => 'color: #000099; font-weight: bold;',
  1 => 'color: #000099; font-weight: bold;',
  2 => 'color: #660099; font-weight: bold;',
  3 => 'color: #660099; font-weight: bold;',
  4 => 'color: #660099; font-weight: bold;',
  5 => 'color: #006699; font-weight: bold;',
  'HARD' => '',
), ),
'BRACKETS' => array( 'BRACKETS' => array(
0 => 'color: #006E28;' 0 => 'color: #006E28;'
), ),
'STRINGS' => array( 'STRINGS' => array(
Line 289... Line 311...
) )
) )
); );
   
?> ?>
   

Powered by WebSVN 2.2.1