0
|
1 |
<?php
|
|
2 |
/*************************************************************************************
|
|
3 |
* cpp.php
|
|
4 |
* -------
|
|
5 |
* Author: Iulian M
|
|
6 |
* Copyright: (c) 2006 Iulian M
|
2
|
7 |
* Release Version: 1.0.8.2
|
0
|
8 |
* Date Started: 2004/09/27
|
|
9 |
*
|
2
|
10 |
* C++ (with QT extensions) language file for GeSHi.
|
0
|
11 |
*
|
|
12 |
* CHANGES
|
|
13 |
* -------
|
2
|
14 |
* 2008/05/23 (1.0.7.22)
|
|
15 |
* - Added description of extra language features (SF#1970248)
|
0
|
16 |
*
|
|
17 |
* TODO
|
|
18 |
* ----
|
|
19 |
*
|
|
20 |
*************************************************************************************
|
|
21 |
*
|
|
22 |
* This file is part of GeSHi.
|
|
23 |
*
|
|
24 |
* GeSHi is free software; you can redistribute it and/or modify
|
|
25 |
* it under the terms of the GNU General Public License as published by
|
|
26 |
* the Free Software Foundation; either version 2 of the License, or
|
|
27 |
* (at your option) any later version.
|
|
28 |
*
|
|
29 |
* GeSHi is distributed in the hope that it will be useful,
|
|
30 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
31 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
32 |
* GNU General Public License for more details.
|
|
33 |
*
|
|
34 |
* You should have received a copy of the GNU General Public License
|
|
35 |
* along with GeSHi; if not, write to the Free Software
|
|
36 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
37 |
*
|
|
38 |
************************************************************************************/
|
|
39 |
|
|
40 |
$language_data = array (
|
2
|
41 |
'LANG_NAME' => 'C++ (QT)',
|
|
42 |
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
|
|
43 |
'COMMENT_MULTI' => array('/*' => '*/'),
|
|
44 |
//Multiline-continued Singleline comments
|
|
45 |
'COMMENT_REGEXP' => array(1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m'),
|
|
46 |
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
|
47 |
'QUOTEMARKS' => array("'", '"'),
|
|
48 |
'ESCAPE_CHAR' => '',
|
|
49 |
'ESCAPE_REGEXP' => array(
|
|
50 |
//Simple Single Char Escapes
|
|
51 |
1 => "#\\\\[abfnrtv\\'\"?\n]#i",
|
|
52 |
//Hexadecimal Char Specs
|
|
53 |
2 => "#\\\\x[\da-fA-F]{2}#",
|
|
54 |
//Hexadecimal Char Specs
|
|
55 |
3 => "#\\\\u[\da-fA-F]{4}#",
|
|
56 |
//Hexadecimal Char Specs
|
|
57 |
4 => "#\\\\U[\da-fA-F]{8}#",
|
|
58 |
//Octal Char Specs
|
|
59 |
5 => "#\\\\[0-7]{1,3}#"
|
0
|
60 |
),
|
2
|
61 |
'NUMBERS' =>
|
|
62 |
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B |
|
|
63 |
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI |
|
|
64 |
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO,
|
|
65 |
'KEYWORDS' => array(
|
|
66 |
1 => array(
|
|
67 |
'case', 'continue', 'default', 'do', 'else', 'for', 'goto', 'if', 'return',
|
|
68 |
'switch', 'while', 'delete', 'new', 'this'
|
|
69 |
),
|
|
70 |
2 => array(
|
|
71 |
'NULL', 'false', 'break', 'true', 'enum', 'errno', 'EDOM',
|
|
72 |
'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG',
|
|
73 |
'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG',
|
|
74 |
'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP',
|
|
75 |
'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP',
|
|
76 |
'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN',
|
|
77 |
'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN',
|
|
78 |
'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT',
|
|
79 |
'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR',
|
|
80 |
'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam',
|
|
81 |
'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr',
|
|
82 |
'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC',
|
|
83 |
'virtual', 'public', 'private', 'protected', 'template', 'using', 'namespace',
|
|
84 |
'try', 'catch', 'inline', 'dynamic_cast', 'const_cast', 'reinterpret_cast',
|
|
85 |
'static_cast', 'explicit', 'friend', 'wchar_t', 'typename', 'typeid', 'class' ,
|
|
86 |
'foreach','connect', 'Q_OBJECT' , 'slots' , 'signals'
|
|
87 |
),
|
|
88 |
3 => array(
|
|
89 |
'cin', 'cerr', 'clog', 'cout',
|
|
90 |
'printf', 'fprintf', 'snprintf', 'sprintf', 'assert',
|
|
91 |
'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint',
|
|
92 |
'ispunct', 'isspace', 'isupper', 'isxdigit', 'tolower', 'toupper',
|
|
93 |
'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp',
|
|
94 |
'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2',
|
|
95 |
'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp',
|
|
96 |
'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen',
|
|
97 |
'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf',
|
|
98 |
'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf',
|
|
99 |
'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc',
|
|
100 |
'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind',
|
|
101 |
'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs',
|
|
102 |
'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc',
|
|
103 |
'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv',
|
|
104 |
'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat',
|
|
105 |
'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn',
|
|
106 |
'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy',
|
|
107 |
'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime',
|
|
108 |
'asctime', 'ctime', 'gmtime', 'localtime', 'strftime'
|
|
109 |
),
|
|
110 |
4 => array(
|
|
111 |
'auto', 'bool', 'char', 'const', 'double', 'float', 'int', 'long', 'longint',
|
|
112 |
'register', 'short', 'shortint', 'signed', 'static', 'struct',
|
|
113 |
'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf',
|
|
114 |
'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t',
|
|
115 |
'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm',
|
|
116 |
),
|
|
117 |
5 => array(
|
|
118 |
'QAbstractButton','QDir','QIntValidator','QRegExpValidator','QTabWidget','QAbstractEventDispatcher',
|
|
119 |
'QDirectPainter','QIODevice','QRegion','QTcpServer','QAbstractExtensionFactory','QDirModel',
|
|
120 |
'QItemDelegate','QResizeEvent','QTcpSocket','QAbstractExtensionManager','QDockWidget',
|
|
121 |
'QItemEditorCreatorBase','QResource','QTemporaryFile','QAbstractFileEngine','QDomAttr',
|
|
122 |
'QItemEditorFactory','QRubberBand','QTestEventList','QAbstractFileEngineHandler','QDomCDATASection',
|
|
123 |
'QItemSelection','QScreen','QTextBlock','QAbstractFormBuilder','QDomCharacterData','QItemSelectionModel',
|
|
124 |
'QScreenCursor','QTextBlockFormat','QAbstractGraphicsShapeItem','QDomComment','QItemSelectionRange',
|
|
125 |
'QScreenDriverFactory','QTextBlockGroup','QAbstractItemDelegate','QDomDocument','QKbdDriverFactory',
|
|
126 |
'QScreenDriverPlugin','QTextBlockUserData','QAbstractItemModel','QDomDocumentFragment','QKbdDriverPlugin',
|
|
127 |
'QScrollArea','QTextBrowser','QAbstractItemView','QDomDocumentType','QKeyEvent','QScrollBar',
|
|
128 |
'QTextCharFormat','QAbstractListModel','QDomElement','QKeySequence','QSemaphore','QTextCodec',
|
|
129 |
'QAbstractPrintDialog','QDomEntity','QLabel','QSessionManager','QTextCodecPlugin','QAbstractProxyModel',
|
|
130 |
'QDomEntityReference','QLatin1Char','QSet','QTextCursor','QAbstractScrollArea','QDomImplementation',
|
|
131 |
'QLatin1String','QSetIterator','QTextDecoder','QAbstractSlider','QDomNamedNodeMap','QLayout','QSettings',
|
|
132 |
'QTextDocument','QAbstractSocket','QDomNode','QLayoutItem','QSharedData','QTextDocumentFragment',
|
|
133 |
'QAbstractSpinBox','QDomNodeList','QLCDNumber','QSharedDataPointer','QTextEdit','QAbstractTableModel',
|
|
134 |
'QDomNotation','QLibrary','QShortcut','QTextEncoder','QAbstractTextDocumentLayout',
|
|
135 |
'QDomProcessingInstruction','QLibraryInfo','QShortcutEvent','QTextFormat','QAccessible','QDomText',
|
|
136 |
'QLine','QShowEvent','QTextFragment','QAccessibleBridge','QDoubleSpinBox','QLinearGradient',
|
|
137 |
'QSignalMapper','QTextFrame','QAccessibleBridgePlugin','QDoubleValidator','QLineEdit','QSignalSpy',
|
|
138 |
'QTextFrameFormat','QAccessibleEvent','QDrag','QLineF','QSize','QTextImageFormat','QAccessibleInterface',
|
|
139 |
'QDragEnterEvent','QLinkedList','QSizeF','QTextInlineObject','QAccessibleObject','QDragLeaveEvent',
|
|
140 |
'QLinkedListIterator','QSizeGrip','QTextLayout','QAccessiblePlugin','QDragMoveEvent','QLinuxFbScreen',
|
|
141 |
'QSizePolicy','QTextLength','QAccessibleWidget','QDropEvent','QList','QSlider','QTextLine','QAction',
|
|
142 |
'QDynamicPropertyChangeEvent','QListIterator','QSocketNotifier','QTextList','QActionEvent','QErrorMessage',
|
|
143 |
'QListView','QSortFilterProxyModel','QTextListFormat','QActionGroup','QEvent','QListWidget','QSound',
|
|
144 |
'QTextObject','QApplication','QEventLoop','QListWidgetItem','QSpacerItem','QTextOption','QAssistantClient',
|
|
145 |
'QExtensionFactory','QLocale','QSpinBox','QTextStream','QAxAggregated','QExtensionManager',
|
|
146 |
'QMacPasteboardMime','QSplashScreen','QTextTable','QAxBase','QFile','QMacStyle','QSplitter',
|
|
147 |
'QTextTableCell','QAxBindable','QFileDialog','QMainWindow','QSplitterHandle','QTextTableFormat',
|
|
148 |
'QAxFactory','QFileIconProvider','QMap','QSqlDatabase','QThread','QAxObject','QFileInfo','QMapIterator',
|
|
149 |
'QSqlDriver','QThreadStorage','QAxScript','QFileOpenEvent','QMatrix','QSqlDriverCreator','QTime',
|
|
150 |
'QAxScriptEngine','QFileSystemWatcher','QMenu','QSqlDriverCreatorBase','QTimeEdit','QAxScriptManager',
|
|
151 |
'QFlag','QMenuBar','QSqlDriverPlugin','QTimeLine','QAxWidget','QFlags','QMessageBox','QSqlError','QTimer',
|
|
152 |
'QBasicTimer','QFocusEvent','QMetaClassInfo','QSqlField','QTimerEvent','QBitArray','QFocusFrame',
|
|
153 |
'QMetaEnum','QSqlIndex','QToolBar','QBitmap','QFont','QMetaMethod','QSqlQuery','QToolBox','QBoxLayout',
|
|
154 |
'QFontComboBox','QMetaObject','QSqlQueryModel','QToolButton','QBrush','QFontDatabase','QMetaProperty',
|
|
155 |
'QSqlRecord','QToolTip','QBuffer','QFontDialog','QMetaType','QSqlRelation','QTransformedScreen',
|
|
156 |
'QButtonGroup','QFontInfo','QMimeData','QSqlRelationalDelegate','QTranslator','QByteArray','QFontMetrics',
|
|
157 |
'QMimeSource','QSqlRelationalTableModel','QTreeView','QByteArrayMatcher','QFontMetricsF','QModelIndex',
|
|
158 |
'QSqlResult','QTreeWidget','QCache','QFormBuilder','QMotifStyle','QSqlTableModel','QTreeWidgetItem',
|
|
159 |
'QCalendarWidget','QFrame','QMouseDriverFactory','QStack','QTreeWidgetItemIterator','QCDEStyle',
|
|
160 |
'QFSFileEngine','QMouseDriverPlugin','QStackedLayout','QUdpSocket','QChar','QFtp','QMouseEvent',
|
|
161 |
'QStackedWidget','QUiLoader','QCheckBox','QGenericArgument','QMoveEvent','QStandardItem','QUndoCommand',
|
|
162 |
'QChildEvent','QGenericReturnArgument','QMovie','QStandardItemEditorCreator','QUndoGroup',
|
|
163 |
'QCleanlooksStyle','QGLColormap','QMultiHash','QStandardItemModel','QUndoStack','QClipboard',
|
|
164 |
'QGLContext','QMultiMap','QStatusBar','QUndoView','QCloseEvent','QGLFormat','QMutableHashIterator',
|
|
165 |
'QStatusTipEvent','QUrl','QColor','QGLFramebufferObject','QMutableLinkedListIterator','QString',
|
|
166 |
'QUrlInfo','QColorDialog','QGLPixelBuffer','QMutableListIterator','QStringList','QUuid','QColormap',
|
|
167 |
'QGLWidget','QMutableMapIterator','QStringListModel','QValidator','QComboBox','QGradient',
|
|
168 |
'QMutableSetIterator','QStringMatcher','QVariant','QCommonStyle','QGraphicsEllipseItem',
|
|
169 |
'QMutableVectorIterator','QStyle','QVarLengthArray','QCompleter','QGraphicsItem','QMutex',
|
|
170 |
'QStyleFactory','QVBoxLayout','QConicalGradient','QGraphicsItemAnimation','QMutexLocker',
|
|
171 |
'QStyleHintReturn','QVector','QContextMenuEvent','QGraphicsItemGroup','QNetworkAddressEntry',
|
|
172 |
'QStyleHintReturnMask','QVectorIterator','QCopChannel','QGraphicsLineItem','QNetworkInterface',
|
|
173 |
'QStyleOption','QVFbScreen','QCoreApplication','QGraphicsPathItem','QNetworkProxy','QStyleOptionButton',
|
|
174 |
'QVNCScreen','QCursor','QGraphicsPixmapItem','QObject','QStyleOptionComboBox','QWaitCondition',
|
|
175 |
'QCustomRasterPaintDevice','QGraphicsPolygonItem','QObjectCleanupHandler','QStyleOptionComplex',
|
|
176 |
'QWhatsThis','QDataStream','QGraphicsRectItem','QPageSetupDialog','QStyleOptionDockWidget',
|
|
177 |
'QWhatsThisClickedEvent','QDataWidgetMapper','QGraphicsScene','QPaintDevice','QStyleOptionFocusRect',
|
|
178 |
'QWheelEvent','QDate','QGraphicsSceneContextMenuEvent','QPaintEngine','QStyleOptionFrame','QWidget',
|
|
179 |
'QDateEdit','QGraphicsSceneEvent','QPaintEngineState','QStyleOptionFrameV2','QWidgetAction','QDateTime',
|
|
180 |
'QGraphicsSceneHoverEvent','QPainter','QStyleOptionGraphicsItem','QWidgetItem','QDateTimeEdit',
|
|
181 |
'QGraphicsSceneMouseEvent','QPainterPath','QStyleOptionGroupBox','QWindowsMime','QDBusAbstractAdaptor',
|
|
182 |
'QGraphicsSceneWheelEvent','QPainterPathStroker','QStyleOptionHeader','QWindowsStyle',
|
|
183 |
'QDBusAbstractInterface','QGraphicsSimpleTextItem','QPaintEvent','QStyleOptionMenuItem',
|
|
184 |
'QWindowStateChangeEvent','QDBusArgument','QGraphicsSvgItem','QPair','QStyleOptionProgressBar',
|
|
185 |
'QWindowsXPStyle','QDBusConnection','QGraphicsTextItem','QPalette','QStyleOptionProgressBarV2',
|
|
186 |
'QWorkspace','QDBusConnectionInterface','QGraphicsView','QPen','QStyleOptionQ3DockWindow','QWriteLocker',
|
|
187 |
'QDBusError','QGridLayout','QPersistentModelIndex','QStyleOptionQ3ListView','QWSCalibratedMouseHandler',
|
|
188 |
'QDBusInterface','QGroupBox','QPicture','QStyleOptionQ3ListViewItem','QWSClient','QDBusMessage','QHash',
|
|
189 |
'QPictureFormatPlugin','QStyleOptionRubberBand','QWSEmbedWidget','QDBusObjectPath','QHashIterator',
|
|
190 |
'QPictureIO','QStyleOptionSizeGrip','QWSEvent','QDBusReply','QHBoxLayout','QPixmap','QStyleOptionSlider',
|
|
191 |
'QWSInputMethod','QDBusServer','QHeaderView','QPixmapCache','QStyleOptionSpinBox','QWSKeyboardHandler',
|
|
192 |
'QDBusSignature','QHelpEvent','QPlastiqueStyle','QStyleOptionTab','QWSMouseHandler','QDBusVariant',
|
|
193 |
'QHideEvent','QPluginLoader','QStyleOptionTabBarBase','QWSPointerCalibrationData','QDecoration',
|
|
194 |
'QHostAddress','QPoint','QStyleOptionTabV2','QWSScreenSaver','QDecorationFactory','QHostInfo','QPointer',
|
|
195 |
'QStyleOptionTabWidgetFrame','QWSServer','QDecorationPlugin','QHoverEvent','QPointF','QStyleOptionTitleBar',
|
|
196 |
'QWSTslibMouseHandler','QDesignerActionEditorInterface','QHttp','QPolygon','QStyleOptionToolBar','QWSWindow',
|
|
197 |
'QDesignerContainerExtension','QHttpHeader','QPolygonF','QStyleOptionToolBox','QWSWindowSurface',
|
|
198 |
'QDesignerCustomWidgetCollectionInterface','QHttpRequestHeader','QPrintDialog','QStyleOptionToolButton',
|
|
199 |
'QX11EmbedContainer','QDesignerCustomWidgetInterface','QHttpResponseHeader','QPrintEngine',
|
|
200 |
'QStyleOptionViewItem','QX11EmbedWidget','QDesignerFormEditorInterface','QIcon','QPrinter',
|
|
201 |
'QStyleOptionViewItemV2','QX11Info','QDesignerFormWindowCursorInterface','QIconDragEvent','QProcess',
|
|
202 |
'QStylePainter','QXmlAttributes','QDesignerFormWindowInterface','QIconEngine','QProgressBar',
|
|
203 |
'QStylePlugin','QXmlContentHandler','QDesignerFormWindowManagerInterface','QIconEnginePlugin',
|
|
204 |
'QProgressDialog','QSvgRenderer','QXmlDeclHandler','QDesignerMemberSheetExtension','QImage',
|
|
205 |
'QProxyModel','QSvgWidget','QXmlDefaultHandler','QDesignerObjectInspectorInterface','QImageIOHandler',
|
|
206 |
'QPushButton','QSyntaxHighlighter','QXmlDTDHandler','QDesignerPropertyEditorInterface','QImageIOPlugin',
|
|
207 |
'QQueue','QSysInfo','QXmlEntityResolver','QDesignerPropertySheetExtension','QImageReader','QRadialGradient',
|
|
208 |
'QSystemLocale','QXmlErrorHandler','QDesignerTaskMenuExtension','QImageWriter','QRadioButton',
|
|
209 |
'QSystemTrayIcon','QXmlInputSource','QDesignerWidgetBoxInterface','QInputContext','QRasterPaintEngine',
|
|
210 |
'QTabBar','QXmlLexicalHandler','QDesktopServices','QInputContextFactory','QReadLocker','QTabletEvent',
|
|
211 |
'QXmlLocator','QDesktopWidget','QInputContextPlugin','QReadWriteLock','QTableView','QXmlNamespaceSupport',
|
|
212 |
'QDial','QInputDialog','QRect','QTableWidget','QXmlParseException','QDialog','QInputEvent','QRectF',
|
|
213 |
'QTableWidgetItem','QXmlReader','QDialogButtonBox','QInputMethodEvent','QRegExp',
|
|
214 |
'QTableWidgetSelectionRange','QXmlSimpleReader'
|
|
215 |
)
|
|
216 |
),
|
|
217 |
'SYMBOLS' => array(
|
|
218 |
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':', ',', ';', '|', '<', '>'
|
|
219 |
),
|
|
220 |
'CASE_SENSITIVE' => array(
|
|
221 |
GESHI_COMMENTS => false,
|
|
222 |
1 => false,
|
|
223 |
2 => false,
|
|
224 |
3 => false,
|
|
225 |
4 => false,
|
|
226 |
5 => true,
|
|
227 |
),
|
|
228 |
'STYLES' => array(
|
|
229 |
'KEYWORDS' => array(
|
|
230 |
1 => 'color: #000000; font-weight:bold;',
|
|
231 |
2 => 'color: #0057AE;',
|
|
232 |
3 => 'color: #2B74C7;',
|
|
233 |
4 => 'color: #0057AE;',
|
|
234 |
5 => 'color: #22aadd;'
|
|
235 |
),
|
|
236 |
'COMMENTS' => array(
|
|
237 |
1 => 'color: #888888;',
|
|
238 |
2 => 'color: #006E28;',
|
|
239 |
'MULTI' => 'color: #888888; font-style: italic;'
|
|
240 |
),
|
|
241 |
'ESCAPE_CHAR' => array(
|
|
242 |
0 => 'color: #000099; font-weight: bold;',
|
|
243 |
1 => 'color: #000099; font-weight: bold;',
|
|
244 |
2 => 'color: #660099; font-weight: bold;',
|
|
245 |
3 => 'color: #660099; font-weight: bold;',
|
|
246 |
4 => 'color: #660099; font-weight: bold;',
|
|
247 |
5 => 'color: #006699; font-weight: bold;',
|
|
248 |
'HARD' => '',
|
|
249 |
),
|
|
250 |
'BRACKETS' => array(
|
|
251 |
0 => 'color: #006E28;'
|
|
252 |
),
|
|
253 |
'STRINGS' => array(
|
|
254 |
0 => 'color: #BF0303;'
|
|
255 |
),
|
|
256 |
'NUMBERS' => array(
|
|
257 |
0 => 'color: #B08000;',
|
|
258 |
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;',
|
|
259 |
GESHI_NUMBER_OCT_PREFIX => 'color: #208080;',
|
|
260 |
GESHI_NUMBER_HEX_PREFIX => 'color: #208080;',
|
|
261 |
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;',
|
|
262 |
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;',
|
|
263 |
GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;',
|
|
264 |
GESHI_NUMBER_FLT_NONSCI => 'color:#800080;'
|
|
265 |
),
|
|
266 |
'METHODS' => array(
|
|
267 |
1 => 'color: #2B74C7;',
|
|
268 |
2 => 'color: #2B74C7;',
|
|
269 |
3 => 'color: #2B74C7;'
|
|
270 |
),
|
|
271 |
'SYMBOLS' => array(
|
|
272 |
0 => 'color: #006E28;'
|
|
273 |
),
|
|
274 |
'REGEXPS' => array(
|
|
275 |
),
|
|
276 |
'SCRIPT' => array(
|
|
277 |
)
|
|
278 |
),
|
|
279 |
'URLS' => array(
|
|
280 |
1 => '',
|
|
281 |
2 => '',
|
|
282 |
3 => '',
|
|
283 |
4 => '',
|
|
284 |
5 => 'http://doc.trolltech.com/latest/{FNAMEL}.html'
|
|
285 |
),
|
|
286 |
'OOLANG' => true,
|
|
287 |
'OBJECT_SPLITTERS' => array(
|
|
288 |
1 => '.',
|
|
289 |
2 => '::',
|
|
290 |
3 => '->',
|
|
291 |
),
|
|
292 |
'REGEXPS' => array(
|
|
293 |
),
|
|
294 |
'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
|
295 |
'SCRIPT_DELIMITERS' => array(
|
|
296 |
),
|
|
297 |
'HIGHLIGHT_STRICT_BLOCK' => array(
|
|
298 |
),
|
|
299 |
'TAB_WIDTH' => 4,
|
|
300 |
'PARSER_CONTROL' => array(
|
|
301 |
'KEYWORDS' => array(
|
|
302 |
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#>|^])",
|
|
303 |
'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_<\|%\\-])"
|
|
304 |
),
|
|
305 |
'OOLANG' => array(
|
|
306 |
'MATCH_AFTER' => '~?[a-zA-Z][a-zA-Z0-9_]*',
|
|
307 |
)
|
|
308 |
)
|
0
|
309 |
);
|
|
310 |
|
|
311 |
?>
|