PageRenderTime 51ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/external/libvpx/examples/includes/geshi/geshi/abap.php

https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk
PHP | 1419 lines | 1324 code | 2 blank | 93 comment | 3 complexity | 50b1b737300e5cd0cef683c38cbc055a MD5 | raw file
  1. <?php
  2. /*************************************************************************************
  3. * abap.php
  4. * --------
  5. * Author: Andres Picazo (andres@andrespicazo.com)
  6. * Contributors:
  7. * - Sandra Rossi (sandra.rossi@gmail.com)
  8. * - Jacob Laursen (jlu@kmd.dk)
  9. * Copyright: (c) 2007 Andres Picazo
  10. * Release Version: 1.0.8.3
  11. * Date Started: 2004/06/04
  12. *
  13. * ABAP language file for GeSHi.
  14. *
  15. * Reference abap language documentation (abap 7.1) : http://help.sap.com/abapdocu/en/ABENABAP_INDEX.htm
  16. *
  17. * ABAP syntax is highly complex, several problems could not be addressed, see TODO below if you dare ;-)
  18. * Be aware that in ABAP language, keywords may be composed of several tokens,
  19. * separated by one or more spaces or carriage returns
  20. * (for example CONCATENATE 'hello' 'world' INTO string SEPARATED BY ' ')
  21. * it's why we must decode them with REGEXPS. As there are many keywords with several tokens,
  22. * I had to create a separate section in the code to simplify the reading.
  23. * Be aware that some words may be highlighted several times like for "ref to data", which is first
  24. * highlighted for "ref to data", then secondly for "ref to". It is very important to
  25. * position "ref to" after "ref to data" otherwise "data" wouldn't be highlighted because
  26. * of the previous highlight.
  27. * Styles used : keywords are all displayed in upper case, and they are organized into 4 categories :
  28. * 1) control statements (blue), 2) declarative statements (red-maroon),
  29. * 3) other statements (blue-green), 4) keywords (violet).
  30. * + GeSHi : literals (red) + symbols (green) + methods/attributes (mauve)
  31. * + unchanged style for other words.
  32. * Control, declarative and other statements are assigned URLs to sap documentation website:
  33. * http://help.sap.com/abapdocu/en/ABAP<statement_name>.htm
  34. *
  35. * CHANGES
  36. * -------
  37. * 2009/02/25 (1.0.8.3)
  38. * - Some more rework of the language file
  39. * 2009/01/04 (1.0.8.2)
  40. * - Major Release, more than 1000 statements and keywords added = whole abap 7.1 (Sandra Rossi)
  41. * 2007/06/27 (1.0.0)
  42. * - First Release
  43. *
  44. * TODO
  45. * ----
  46. * - in DATA data TYPE type, 2nd "data" and 2nd "type" are highlighted with data
  47. * style, but should be ignored. Same problem for all words!!! This is quite impossible to
  48. * solve it as we should define syntaxes of all statements (huge effort!) and use a lex
  49. * or something like that instead of regexp I guess.
  50. * - Some words are considered as being statement names (report, tables, etc.) though they
  51. * are used as keyword in some statements. For example: FORM xxxx TABLES itab. It was
  52. * arbitrary decided to define them as statement instead of keyword, because it may be
  53. * useful to have the URL to SAP help for some of them.
  54. * - if a comment is between 2 words of a keyword (for example SEPARATED "comment \n BY),
  55. * it is not considered as a keyword, but it should!
  56. * - for statements like "READ DATASET", GeSHi does not allow to set URLs because these
  57. * statements are determined by REGEXPS. For "READ DATASET", the URL should be
  58. * ABAPREAD_DATASET.htm. If a technical solution is found, be careful : URLs
  59. * are sometimes not valid because the URL does not exist. For example, for "AT NEW"
  60. * statement, the URL should be ABAPAT_ITAB.htm (not ABAPAT_NEW.htm).
  61. * There are many other exceptions.
  62. * Note: for adding this functionality within your php program, you can execute this code:
  63. * function add_urls_to_multi_tokens( $matches ) {
  64. * $url = preg_replace( "/[ \n]+/" , "_" , $matches[3] );
  65. * if( $url == $matches[3] ) return $matches[0] ;
  66. * else return $matches[1]."<a href=\"http://help.sap.com/abapdocu/en/ABAP".strtoupper($url).".htm\">".$matches[3]."</a>".$matches[4];
  67. * }
  68. * $html = $geshi->parse_code();
  69. * $html = preg_replace_callback( "£(zzz:(control|statement|data);\">)(.+?)(</span>)£s", "add_urls_to_multi_tokens", $html );
  70. * echo $html;
  71. * - Numbers followed by a dot terminating the statement are not properly recognized
  72. *
  73. *************************************************************************************
  74. *
  75. * This file is part of GeSHi.
  76. *
  77. * GeSHi is free software; you can redistribute it and/or modify
  78. * it under the terms of the GNU General Public License as published by
  79. * the Free Software Foundation; either version 2 of the License, or
  80. * (at your option) any later version.
  81. *
  82. * GeSHi is distributed in the hope that it will be useful,
  83. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  84. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  85. * GNU General Public License for more details.
  86. *
  87. * You should have received a copy of the GNU General Public License
  88. * along with GeSHi; if not, write to the Free Software
  89. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  90. *
  91. ************************************************************************************/
  92. $language_data = array(
  93. 'LANG_NAME' => 'ABAP',
  94. 'COMMENT_SINGLE' => array(
  95. 1 => '"'
  96. ),
  97. 'COMMENT_MULTI' => array(),
  98. 'COMMENT_REGEXP' => array(
  99. // lines beginning with star at 1st position are comments
  100. // (star anywhere else is not a comment, especially be careful with
  101. // "assign dref->* to <fs>" statement)
  102. 2 => '/^\*.*?$/m'
  103. ),
  104. 'CASE_KEYWORDS' => 0,
  105. 'QUOTEMARKS' => array(
  106. 1 => "'",
  107. 2 => "`"
  108. ),
  109. 'ESCAPE_CHAR' => '',
  110. 'KEYWORDS' => array(
  111. //***********************************************
  112. // Section 2 : process sequences of several tokens
  113. //***********************************************
  114. 7 => array(
  115. 'at new',
  116. 'at end of',
  117. 'at first',
  118. 'at last',
  119. 'loop at',
  120. 'loop at screen',
  121. ),
  122. 8 => array(
  123. 'private section',
  124. 'protected section',
  125. 'public section',
  126. 'at line-selection',
  127. 'at selection-screen',
  128. 'at user-command',
  129. 'assign component',
  130. 'assign table field',
  131. 'call badi',
  132. 'call customer-function',
  133. 'call customer subscreen',
  134. 'call dialog',
  135. 'call function',
  136. 'call method',
  137. 'call screen',
  138. 'call selection-screen',
  139. 'call transaction',
  140. 'call transformation',
  141. 'close cursor',
  142. 'close dataset',
  143. 'commit work',
  144. 'convert date',
  145. 'convert text',
  146. 'convert time stamp',
  147. 'create data',
  148. 'create object',
  149. 'delete dataset',
  150. 'delete from',
  151. 'describe distance',
  152. 'describe field',
  153. 'describe list',
  154. 'describe table',
  155. 'exec sql',
  156. 'exit from sql',
  157. 'exit from step-loop',
  158. 'export dynpro',
  159. 'export nametab',
  160. 'free memory',
  161. 'generate subroutine-pool',
  162. 'get badi',
  163. 'get bit',
  164. 'get cursor',
  165. 'get dataset',
  166. 'get locale',
  167. 'get parameter',
  168. 'get pf-status',
  169. 'get property',
  170. 'get reference',
  171. 'get run time',
  172. 'get time',
  173. 'get time stamp',
  174. 'import directory',
  175. 'insert report',
  176. 'insert text-pool',
  177. 'leave list-processing',
  178. 'leave program',
  179. 'leave screen',
  180. 'leave to list-processing',
  181. 'leave to transaction',
  182. 'modify line',
  183. 'modify screen',
  184. 'move percentage',
  185. 'open cursor',
  186. 'open dataset',
  187. 'raise event',
  188. 'raise exception',
  189. 'read dataset',
  190. 'read line',
  191. 'read report',
  192. 'read table',
  193. 'read textpool',
  194. 'receive results from function',
  195. 'refresh control',
  196. 'rollback work',
  197. 'set bit',
  198. 'set blank lines',
  199. 'set country',
  200. 'set cursor',
  201. 'set dataset',
  202. 'set extended check',
  203. 'set handler',
  204. 'set hold data',
  205. 'set language',
  206. 'set left scroll-boundary',
  207. 'set locale',
  208. 'set margin',
  209. 'set parameter',
  210. 'set pf-status',
  211. 'set property',
  212. 'set run time analyzer',
  213. 'set run time clock',
  214. 'set screen',
  215. 'set titlebar',
  216. 'set update task',
  217. 'set user-command',
  218. 'suppress dialog',
  219. 'truncate dataset',
  220. 'wait until',
  221. 'wait up to',
  222. ),
  223. 9 => array(
  224. 'accepting duplicate keys',
  225. 'accepting padding',
  226. 'accepting truncation',
  227. 'according to',
  228. 'actual length',
  229. 'adjacent duplicates',
  230. 'after input',
  231. 'all blob columns',
  232. 'all clob columns',
  233. 'all fields',
  234. 'all methods',
  235. 'all other columns',
  236. 'and mark',
  237. 'and return to screen',
  238. 'and return',
  239. 'and skip first screen',
  240. 'and wait',
  241. 'any table',
  242. 'appendage type',
  243. 'archive mode',
  244. 'archiving parameters',
  245. 'area handle',
  246. 'as checkbox',
  247. 'as icon',
  248. 'as line',
  249. 'as listbox',
  250. 'as person table',
  251. 'as search patterns',
  252. 'as separate unit',
  253. 'as subscreen',
  254. 'as symbol',
  255. 'as text',
  256. 'as window',
  257. 'at cursor-selection',
  258. 'at exit-command',
  259. 'at next application statement',
  260. 'at position',
  261. 'backup into',
  262. 'before output',
  263. 'before unwind',
  264. 'begin of block',
  265. 'begin of common part',
  266. 'begin of line',
  267. 'begin of screen',
  268. 'begin of tabbed block',
  269. 'begin of version',
  270. 'begin of',
  271. 'big endian',
  272. 'binary mode',
  273. 'binary search',
  274. 'by kernel module',
  275. 'bypassing buffer',
  276. 'client specified',
  277. 'code page',
  278. 'code page hint',
  279. 'code page into',
  280. 'color black',
  281. 'color blue',
  282. 'color green',
  283. 'color pink',
  284. 'color red',
  285. 'color yellow',
  286. 'compression off',
  287. 'compression on',
  288. 'connect to',
  289. 'corresponding fields of table',
  290. 'corresponding fields of',
  291. 'cover page',
  292. 'cover text',
  293. 'create package',
  294. 'create private',
  295. 'create protected',
  296. 'create public',
  297. 'current position',
  298. 'data buffer',
  299. 'data values',
  300. 'dataset expiration',
  301. 'daylight saving time',
  302. 'default key',
  303. 'default program',
  304. 'default screen',
  305. 'defining database',
  306. 'deleting leading',
  307. 'deleting trailing',
  308. 'directory entry',
  309. 'display like',
  310. 'display offset',
  311. 'during line-selection',
  312. 'dynamic selections',
  313. 'edit mask',
  314. 'end of block',
  315. 'end of common part',
  316. 'end of file',
  317. 'end of line',
  318. 'end of screen',
  319. 'end of tabbed block',
  320. 'end of version',
  321. 'end of',
  322. 'endian into',
  323. 'ending at',
  324. 'enhancement options into',
  325. 'enhancement into',
  326. 'environment time format',
  327. 'execute procedure',
  328. 'exporting list to memory',
  329. 'extension type',
  330. 'field format',
  331. 'field selection',
  332. 'field value into',
  333. 'final methods',
  334. 'first occurrence of',
  335. 'fixed-point arithmetic',
  336. 'for all entries',
  337. 'for all instances',
  338. 'for appending',
  339. 'for columns',
  340. 'for event of',
  341. 'for field',
  342. 'for high',
  343. 'for input',
  344. 'for lines',
  345. 'for low',
  346. 'for node',
  347. 'for output',
  348. 'for select',
  349. 'for table',
  350. 'for testing',
  351. 'for update',
  352. 'for user',
  353. 'frame entry',
  354. 'frame program from',
  355. 'from code page',
  356. 'from context',
  357. 'from database',
  358. 'from logfile id',
  359. 'from number format',
  360. 'from screen',
  361. 'from table',
  362. 'function key',
  363. 'get connection',
  364. 'global friends',
  365. 'group by',
  366. 'hashed table of',
  367. 'hashed table',
  368. 'if found',
  369. 'ignoring case',
  370. 'ignoring conversion errors',
  371. 'ignoring structure boundaries',
  372. 'implementations from',
  373. 'in background',
  374. 'in background task',
  375. 'in background unit',
  376. 'in binary mode',
  377. 'in byte mode',
  378. 'in char-to-hex mode',
  379. 'in character mode',
  380. 'in group',
  381. 'in legacy binary mode',
  382. 'in legacy text mode',
  383. 'in program',
  384. 'in remote task',
  385. 'in text mode',
  386. 'in table',
  387. 'in update task',
  388. 'include bound',
  389. 'include into',
  390. 'include program from',
  391. 'include structure',
  392. 'include type',
  393. 'including gaps',
  394. 'index table',
  395. 'inheriting from',
  396. 'init destination',
  397. 'initial line of',
  398. 'initial line',
  399. 'initial size',
  400. 'internal table',
  401. 'into sortable code',
  402. 'keep in spool',
  403. 'keeping directory entry',
  404. 'keeping logical unit of work',
  405. 'keeping task',
  406. 'keywords from',
  407. 'left margin',
  408. 'left outer',
  409. 'levels into',
  410. 'line format',
  411. 'line into',
  412. 'line of',
  413. 'line page',
  414. 'line value from',
  415. 'line value into',
  416. 'lines of',
  417. 'list authority',
  418. 'list dataset',
  419. 'list name',
  420. 'little endian',
  421. 'lob handle for',
  422. 'local friends',
  423. 'locator for',
  424. 'lower case',
  425. 'main table field',
  426. 'match count',
  427. 'match length',
  428. 'match line',
  429. 'match offset',
  430. 'matchcode object',
  431. 'maximum length',
  432. 'maximum width into',
  433. 'memory id',
  434. 'message into',
  435. 'messages into',
  436. 'modif id',
  437. 'nesting level',
  438. 'new list identification',
  439. 'next cursor',
  440. 'no database selection',
  441. 'no dialog',
  442. 'no end of line',
  443. 'no fields',
  444. 'no flush',
  445. 'no intervals',
  446. 'no intervals off',
  447. 'no standard page heading',
  448. 'no-extension off',
  449. 'non-unique key',
  450. 'non-unique sorted key',
  451. 'not at end of mode',
  452. 'number of lines',
  453. 'number of pages',
  454. 'object key',
  455. 'obligatory off',
  456. 'of current page',
  457. 'of page',
  458. 'of program',
  459. 'offset into',
  460. 'on block',
  461. 'on commit',
  462. 'on end of task',
  463. 'on end of',
  464. 'on exit-command',
  465. 'on help-request for',
  466. 'on radiobutton group',
  467. 'on rollback',
  468. 'on value-request for',
  469. 'open for package',
  470. 'option class-coding',
  471. 'option class',
  472. 'option coding',
  473. 'option expand',
  474. 'option syncpoints',
  475. 'options from',
  476. 'order by',
  477. 'overflow into',
  478. 'package section',
  479. 'package size',
  480. 'preferred parameter',
  481. 'preserving identifier escaping',
  482. 'primary key',
  483. 'print off',
  484. 'print on',
  485. 'program from',
  486. 'program type',
  487. 'radiobutton groups',
  488. 'radiobutton group',
  489. 'range of',
  490. 'reader for',
  491. 'receive buffer',
  492. 'reduced functionality',
  493. 'ref to data',
  494. 'ref to object',
  495. 'ref to',
  496. 'reference into',
  497. 'renaming with suffix',
  498. 'replacement character',
  499. 'replacement count',
  500. 'replacement length',
  501. 'replacement line',
  502. 'replacement offset',
  503. 'respecting blanks',
  504. 'respecting case',
  505. 'result into',
  506. 'risk level',
  507. 'sap cover page',
  508. 'search fkeq',
  509. 'search fkge',
  510. 'search gkeq',
  511. 'search gkge',
  512. 'section of',
  513. 'send buffer',
  514. 'separated by',
  515. 'shared buffer',
  516. 'shared memory',
  517. 'shared memory enabled',
  518. 'skipping byte-order mark',
  519. 'sorted by',
  520. 'sorted table of',
  521. 'sorted table',
  522. 'spool parameters',
  523. 'standard table of',
  524. 'standard table',
  525. 'starting at',
  526. 'starting new task',
  527. 'statements into',
  528. 'structure default',
  529. 'structures into',
  530. 'table field',
  531. 'table of',
  532. 'text mode',
  533. 'time stamp',
  534. 'time zone',
  535. 'to code page',
  536. 'to column',
  537. 'to context',
  538. 'to first page',
  539. 'to last page',
  540. 'to last line',
  541. 'to line',
  542. 'to lower case',
  543. 'to number format',
  544. 'to page',
  545. 'to sap spool',
  546. 'to upper case',
  547. 'tokens into',
  548. 'transporting no fields',
  549. 'type tableview',
  550. 'type tabstrip',
  551. 'unicode enabling',
  552. 'up to',
  553. 'upper case',
  554. 'using edit mask',
  555. 'using key',
  556. 'using no edit mask',
  557. 'using screen',
  558. 'using selection-screen',
  559. 'using selection-set',
  560. 'using selection-sets of program',
  561. 'valid between',
  562. 'valid from',
  563. 'value check',
  564. 'via job',
  565. 'via selection-screen',
  566. 'visible length',
  567. 'whenever found',
  568. 'with analysis',
  569. 'with byte-order mark',
  570. 'with comments',
  571. 'with current switchstates',
  572. 'with explicit enhancements',
  573. 'with frame',
  574. 'with free selections',
  575. 'with further secondary keys',
  576. 'with header line',
  577. 'with hold',
  578. 'with implicit enhancements',
  579. 'with inactive enhancements',
  580. 'with includes',
  581. 'with key',
  582. 'with linefeed',
  583. 'with list tokenization',
  584. 'with native linefeed',
  585. 'with non-unique key',
  586. 'with null',
  587. 'with pragmas',
  588. 'with precompiled headers',
  589. 'with selection-table',
  590. 'with smart linefeed',
  591. 'with table key',
  592. 'with test code',
  593. 'with type-pools',
  594. 'with unique key',
  595. 'with unix linefeed',
  596. 'with windows linefeed',
  597. 'without further secondary keys',
  598. 'without selection-screen',
  599. 'without spool dynpro',
  600. 'without trmac',
  601. 'word into',
  602. 'writer for'
  603. ),
  604. //**********************************************************
  605. // Other abap statements
  606. //**********************************************************
  607. 3 => array(
  608. 'add',
  609. 'add-corresponding',
  610. 'aliases',
  611. 'append',
  612. 'assign',
  613. 'at',
  614. 'authority-check',
  615. 'break-point',
  616. 'clear',
  617. 'collect',
  618. 'compute',
  619. 'concatenate',
  620. 'condense',
  621. 'class',
  622. 'class-events',
  623. 'class-methods',
  624. 'class-pool',
  625. 'define',
  626. 'delete',
  627. 'demand',
  628. 'detail',
  629. 'divide',
  630. 'divide-corresponding',
  631. 'editor-call',
  632. 'end-of-file',
  633. 'end-enhancement-section',
  634. 'end-of-definition',
  635. 'end-of-page',
  636. 'end-of-selection',
  637. 'endclass',
  638. 'endenhancement',
  639. 'endexec',
  640. 'endform',
  641. 'endfunction',
  642. 'endinterface',
  643. 'endmethod',
  644. 'endmodule',
  645. 'endon',
  646. 'endprovide',
  647. 'endselect',
  648. 'enhancement',
  649. 'enhancement-point',
  650. 'enhancement-section',
  651. 'export',
  652. 'extract',
  653. 'events',
  654. 'fetch',
  655. 'field-groups',
  656. 'find',
  657. 'format',
  658. 'form',
  659. 'free',
  660. 'function-pool',
  661. 'function',
  662. 'get',
  663. 'hide',
  664. 'import',
  665. 'infotypes',
  666. 'input',
  667. 'insert',
  668. 'include',
  669. 'initialization',
  670. 'interface',
  671. 'interface-pool',
  672. 'interfaces',
  673. 'leave',
  674. 'load-of-program',
  675. 'log-point',
  676. 'maximum',
  677. 'message',
  678. 'methods',
  679. 'method',
  680. 'minimum',
  681. 'modify',
  682. 'move',
  683. 'move-corresponding',
  684. 'multiply',
  685. 'multiply-corresponding',
  686. 'new-line',
  687. 'new-page',
  688. 'new-section',
  689. 'overlay',
  690. 'pack',
  691. 'perform',
  692. 'position',
  693. 'print-control',
  694. 'program',
  695. 'provide',
  696. 'put',
  697. 'raise',
  698. 'refresh',
  699. 'reject',
  700. 'replace',
  701. 'report',
  702. 'reserve',
  703. 'scroll',
  704. 'search',
  705. 'select',
  706. 'selection-screen',
  707. 'shift',
  708. 'skip',
  709. 'sort',
  710. 'split',
  711. 'start-of-selection',
  712. 'submit',
  713. 'subtract',
  714. 'subtract-corresponding',
  715. 'sum',
  716. 'summary',
  717. 'summing',
  718. 'supply',
  719. 'syntax-check',
  720. 'top-of-page',
  721. 'transfer',
  722. 'translate',
  723. 'type-pool',
  724. 'uline',
  725. 'unpack',
  726. 'update',
  727. 'window',
  728. 'write'
  729. ),
  730. //**********************************************************
  731. // keywords
  732. //**********************************************************
  733. 4 => array(
  734. 'abbreviated',
  735. 'abstract',
  736. 'accept',
  737. 'acos',
  738. 'activation',
  739. 'alias',
  740. 'align',
  741. 'all',
  742. 'allocate',
  743. 'and',
  744. 'assigned',
  745. 'any',
  746. 'appending',
  747. 'area',
  748. 'as',
  749. 'ascending',
  750. 'asin',
  751. 'assigning',
  752. 'atan',
  753. 'attributes',
  754. 'avg',
  755. 'backward',
  756. 'between',
  757. 'bit-and',
  758. 'bit-not',
  759. 'bit-or',
  760. 'bit-set',
  761. 'bit-xor',
  762. 'boolc',
  763. 'boolx',
  764. 'bound',
  765. 'bt',
  766. 'blocks',
  767. 'bounds',
  768. 'boxed',
  769. 'by',
  770. 'byte-ca',
  771. 'byte-cn',
  772. 'byte-co',
  773. 'byte-cs',
  774. 'byte-na',
  775. 'byte-ns',
  776. 'c',
  777. 'ca',
  778. 'calling',
  779. 'casting',
  780. 'ceil',
  781. 'center',
  782. 'centered',
  783. 'changing',
  784. 'char_off',
  785. 'charlen',
  786. 'circular',
  787. 'class_constructor',
  788. 'client',
  789. 'clike',
  790. 'close',
  791. 'cmax',
  792. 'cmin',
  793. 'cn',
  794. 'cnt',
  795. 'co',
  796. 'col_background',
  797. 'col_group',
  798. 'col_heading',
  799. 'col_key',
  800. 'col_negative',
  801. 'col_normal',
  802. 'col_positive',
  803. 'col_total',
  804. 'color',
  805. 'column',
  806. 'comment',
  807. 'comparing',
  808. 'components',
  809. 'condition',
  810. 'constructor',
  811. 'context',
  812. 'copies',
  813. 'count',
  814. 'country',
  815. 'cpi',
  816. 'creating',
  817. 'critical',
  818. 'concat_lines_of',
  819. 'cos',
  820. 'cosh',
  821. 'count_any_not_of',
  822. 'count_any_of',
  823. 'cp',
  824. 'cs',
  825. 'csequence',
  826. 'currency',
  827. 'current',
  828. 'cx_static_check',
  829. 'cx_root',
  830. 'cx_dynamic_check',
  831. 'd',
  832. 'dangerous',
  833. 'database',
  834. 'datainfo',
  835. 'date',
  836. 'dbmaxlen',
  837. 'dd/mm/yy',
  838. 'dd/mm/yyyy',
  839. 'ddmmyy',
  840. 'deallocate',
  841. 'decfloat',
  842. 'decfloat16',
  843. 'decfloat34',
  844. 'decimals',
  845. 'default',
  846. 'deferred',
  847. 'definition',
  848. 'department',
  849. 'descending',
  850. 'destination',
  851. 'disconnect',
  852. 'display-mode',
  853. 'distance',
  854. 'distinct',
  855. 'div',
  856. 'dummy',
  857. 'e',
  858. 'encoding',
  859. 'end-lines',
  860. 'engineering',
  861. 'environment',
  862. 'eq',
  863. 'equiv',
  864. 'error_message',
  865. 'errormessage',
  866. 'escape',
  867. 'exact',
  868. 'exception-table',
  869. 'exceptions',
  870. 'exclude',
  871. 'excluding',
  872. 'exists',
  873. 'exp',
  874. 'exponent',
  875. 'exporting',
  876. 'extended_monetary',
  877. 'field',
  878. 'filter-table',
  879. 'filters',
  880. 'filter',
  881. 'final',
  882. 'find_any_not_of',
  883. 'find_any_of',
  884. 'find_end',
  885. 'floor',
  886. 'first-line',
  887. 'font',
  888. 'forward',
  889. 'for',
  890. 'frac',
  891. 'from_mixed',
  892. 'friends',
  893. 'from',
  894. 'f',
  895. 'giving',
  896. 'ge',
  897. 'gt',
  898. 'handle',
  899. 'harmless',
  900. 'having',
  901. 'head-lines',
  902. 'help-id',
  903. 'help-request',
  904. 'high',
  905. 'hold',
  906. 'hotspot',
  907. 'i',
  908. 'id',
  909. 'ids',
  910. 'immediately',
  911. 'implementation',
  912. 'importing',
  913. 'in',
  914. 'initial',
  915. 'incl',
  916. 'including',
  917. 'increment',
  918. 'index',
  919. 'index-line',
  920. 'inner',
  921. 'inout',
  922. 'intensified',
  923. 'into',
  924. 'inverse',
  925. 'is',
  926. 'iso',
  927. 'join',
  928. 'key',
  929. 'kind',
  930. 'log10',
  931. 'language',
  932. 'late',
  933. 'layout',
  934. 'le',
  935. 'lt',
  936. 'left-justified',
  937. 'leftplus',
  938. 'leftspace',
  939. 'left',
  940. 'length',
  941. 'level',
  942. 'like',
  943. 'line-count',
  944. 'line-size',
  945. 'lines',
  946. 'line',
  947. 'load',
  948. 'long',
  949. 'lower',
  950. 'low',
  951. 'lpi',
  952. 'matches',
  953. 'match',
  954. 'mail',
  955. 'major-id',
  956. 'max',
  957. 'medium',
  958. 'memory',
  959. 'message-id',
  960. 'module',
  961. 'minor-id',
  962. 'min',
  963. 'mm/dd/yyyy',
  964. 'mm/dd/yy',
  965. 'mmddyy',
  966. 'mode',
  967. 'modifier',
  968. 'mod',
  969. 'monetary',
  970. 'name',
  971. 'nb',
  972. 'ne',
  973. 'next',
  974. 'no-display',
  975. 'no-extension',
  976. 'no-gap',
  977. 'no-gaps',
  978. 'no-grouping',
  979. 'no-heading',
  980. 'no-scrolling',
  981. 'no-sign',
  982. 'no-title',
  983. 'no-topofpage',
  984. 'no-zero',
  985. 'nodes',
  986. 'non-unicode',
  987. 'no',
  988. 'number',
  989. 'n',
  990. 'nmax',
  991. 'nmin',
  992. 'not',
  993. 'null',
  994. 'numeric',
  995. 'numofchar',
  996. 'o',
  997. 'objects',
  998. 'obligatory',
  999. 'occurs',
  1000. 'offset',
  1001. 'off',
  1002. 'of',
  1003. 'only',
  1004. 'open',
  1005. 'option',
  1006. 'optional',
  1007. 'options',
  1008. 'output-length',
  1009. 'output',
  1010. 'out',
  1011. 'on change of',
  1012. 'or',
  1013. 'others',
  1014. 'pad',
  1015. 'page',
  1016. 'pages',
  1017. 'parameter-table',
  1018. 'part',
  1019. 'performing',
  1020. 'pos_high',
  1021. 'pos_low',
  1022. 'priority',
  1023. 'public',
  1024. 'pushbutton',
  1025. 'p',
  1026. 'queue-only',
  1027. 'quickinfo',
  1028. 'raising',
  1029. 'range',
  1030. 'read-only',
  1031. 'received',
  1032. 'receiver',
  1033. 'receiving',
  1034. 'redefinition',
  1035. 'reference',
  1036. 'regex',
  1037. 'replacing',
  1038. 'reset',
  1039. 'responsible',
  1040. 'result',
  1041. 'results',
  1042. 'resumable',
  1043. 'returncode',
  1044. 'returning',
  1045. 'right',
  1046. 'right-specified',
  1047. 'rightplus',
  1048. 'rightspace',
  1049. 'round',
  1050. 'rows',
  1051. 'repeat',
  1052. 'requested',
  1053. 'rescale',
  1054. 'reverse',
  1055. 'scale_preserving',
  1056. 'scale_preserving_scientific',
  1057. 'scientific',
  1058. 'scientific_with_leading_zero',
  1059. 'screen',
  1060. 'scrolling',
  1061. 'seconds',
  1062. 'segment',
  1063. 'shift_left',
  1064. 'shift_right',
  1065. 'sign',
  1066. 'simple',
  1067. 'sin',
  1068. 'sinh',
  1069. 'short',
  1070. 'shortdump-id',
  1071. 'sign_as_postfix',
  1072. 'single',
  1073. 'size',
  1074. 'some',
  1075. 'source',
  1076. 'space',
  1077. 'spots',
  1078. 'stable',
  1079. 'state',
  1080. 'static',
  1081. 'statusinfo',
  1082. 'sqrt',
  1083. 'string',
  1084. 'strlen',
  1085. 'structure',
  1086. 'style',
  1087. 'subkey',
  1088. 'submatches',
  1089. 'substring',
  1090. 'substring_after',
  1091. 'substring_before',
  1092. 'substring_from',
  1093. 'substring_to',
  1094. 'super',
  1095. 'supplied',
  1096. 'switch',
  1097. 't',
  1098. 'tan',
  1099. 'tanh',
  1100. 'table_line',
  1101. 'table',
  1102. 'tab',
  1103. 'then',
  1104. 'timestamp',
  1105. 'times',
  1106. 'time',
  1107. 'timezone',
  1108. 'title-lines',
  1109. 'title',
  1110. 'top-lines',
  1111. 'to',
  1112. 'to_lower',
  1113. 'to_mixed',
  1114. 'to_upper',
  1115. 'trace-file',
  1116. 'trace-table',
  1117. 'transporting',
  1118. 'trunc',
  1119. 'type',
  1120. 'under',
  1121. 'unique',
  1122. 'unit',
  1123. 'user-command',
  1124. 'using',
  1125. 'utf-8',
  1126. 'valid',
  1127. 'value',
  1128. 'value-request',
  1129. 'values',
  1130. 'vary',
  1131. 'varying',
  1132. 'version',
  1133. 'warning',
  1134. 'where',
  1135. 'width',
  1136. 'with',
  1137. 'word',
  1138. 'with-heading',
  1139. 'with-title',
  1140. 'x',
  1141. 'xsequence',
  1142. 'xstring',
  1143. 'xstrlen',
  1144. 'yes',
  1145. 'yymmdd',
  1146. 'z',
  1147. 'zero'
  1148. ),
  1149. //**********************************************************
  1150. // screen statements
  1151. //**********************************************************
  1152. 5 => array(
  1153. 'call subscreen',
  1154. 'chain',
  1155. 'endchain',
  1156. 'on chain-input',
  1157. 'on chain-request',
  1158. 'on help-request',
  1159. 'on input',
  1160. 'on request',
  1161. 'on value-request',
  1162. 'process'
  1163. ),
  1164. //**********************************************************
  1165. // internal statements
  1166. //**********************************************************
  1167. 6 => array(
  1168. 'generate dynpro',
  1169. 'generate report',
  1170. 'import dynpro',
  1171. 'import nametab',
  1172. 'include methods',
  1173. 'load report',
  1174. 'scan abap-source',
  1175. 'scan and check abap-source',
  1176. 'syntax-check for dynpro',
  1177. 'syntax-check for program',
  1178. 'syntax-trace',
  1179. 'system-call',
  1180. 'system-exit',
  1181. 'verification-message'
  1182. ),
  1183. //**********************************************************
  1184. // Control statements
  1185. //**********************************************************
  1186. 1 => array(
  1187. 'assert',
  1188. 'case',
  1189. 'catch',
  1190. 'check',
  1191. 'cleanup',
  1192. 'continue',
  1193. 'do',
  1194. 'else',
  1195. 'elseif',
  1196. 'endat',
  1197. 'endcase',
  1198. 'endcatch',
  1199. 'endif',
  1200. 'enddo',
  1201. 'endloop',
  1202. 'endtry',
  1203. 'endwhile',
  1204. 'exit',
  1205. 'if',
  1206. 'loop',
  1207. 'resume',
  1208. 'retry',
  1209. 'return',
  1210. 'stop',
  1211. 'try',
  1212. 'when',
  1213. 'while'
  1214. ),
  1215. //**********************************************************
  1216. // variable declaration statements
  1217. //**********************************************************
  1218. 2 => array(
  1219. 'class-data',
  1220. 'controls',
  1221. 'constants',
  1222. 'data',
  1223. 'field-symbols',
  1224. 'fields',
  1225. 'local',
  1226. 'parameters',
  1227. 'ranges',
  1228. 'select-options',
  1229. 'statics',
  1230. 'tables',
  1231. 'type-pools',
  1232. 'types'
  1233. )
  1234. ),
  1235. 'SYMBOLS' => array(
  1236. 0 => array(
  1237. '='
  1238. ),
  1239. 1 => array(
  1240. '(', ')', '{', '}', '[', ']', '+', '-', '*', '/', '!', '%', '^', '&', ':'
  1241. )
  1242. ),
  1243. 'CASE_SENSITIVE' => array(
  1244. GESHI_COMMENTS => false,
  1245. 1 => false,
  1246. 2 => false,
  1247. 3 => false,
  1248. 4 => false,
  1249. 5 => false,
  1250. 6 => false,
  1251. 7 => false,
  1252. 8 => false,
  1253. 9 => false,
  1254. ),
  1255. 'STYLES' => array(
  1256. 'KEYWORDS' => array(
  1257. 1 => 'color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;', //control statements
  1258. 2 => 'color: #cc4050; text-transform: uppercase; font-weight: bold; zzz:data;', //data statements
  1259. 3 => 'color: #005066; text-transform: uppercase; font-weight: bold; zzz:statement;', //first token of other statements
  1260. 4 => 'color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;', // next tokens of other statements ("keywords")
  1261. 5 => 'color: #005066; text-transform: uppercase; font-weight: bold; zzz:statement;',
  1262. 6 => 'color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;',
  1263. 7 => 'color: #000066; text-transform: uppercase; font-weight: bold; zzz:control;',
  1264. 8 => 'color: #005066; text-transform: uppercase; font-weight: bold; zzz:statement;',
  1265. 9 => 'color: #500066; text-transform: uppercase; font-weight: bold; zzz:keyword;'
  1266. ),
  1267. 'COMMENTS' => array(
  1268. 1 => 'color: #808080; font-style: italic;',
  1269. 2 => 'color: #339933;',
  1270. 'MULTI' => 'color: #808080; font-style: italic;'
  1271. ),
  1272. 'ESCAPE_CHAR' => array(
  1273. 0 => 'color: #000099; font-weight: bold;'
  1274. ),
  1275. 'BRACKETS' => array(
  1276. 0 => 'color: #808080;'
  1277. ),
  1278. 'STRINGS' => array(
  1279. 0 => 'color: #4da619;'
  1280. ),
  1281. 'NUMBERS' => array(
  1282. 0 => 'color: #3399ff;'
  1283. ),
  1284. 'METHODS' => array(
  1285. 1 => 'color: #202020;',
  1286. 2 => 'color: #202020;'
  1287. ),
  1288. 'SYMBOLS' => array(
  1289. 0 => 'color: #800080;',
  1290. 1 => 'color: #808080;'
  1291. ),
  1292. 'REGEXPS' => array(
  1293. ),
  1294. 'SCRIPT' => array(
  1295. )
  1296. ),
  1297. 'URLS' => array(
  1298. 1 => 'http://help.sap.com/abapdocu/en/ABAP{FNAMEU}.htm',
  1299. 2 => 'http://help.sap.com/abapdocu/en/ABAP{FNAMEU}.htm',
  1300. 3 => 'http://help.sap.com/abapdocu/en/ABAP{FNAMEU}.htm',
  1301. 4 => '',
  1302. 5 => '',
  1303. 6 => '',
  1304. 7 => '',
  1305. 8 => '',
  1306. 9 => ''
  1307. ),
  1308. 'OOLANG' => true,
  1309. 'OBJECT_SPLITTERS' => array(
  1310. 1 => '-&gt;',
  1311. 2 => '=&gt;'
  1312. ),
  1313. 'REGEXPS' => array(
  1314. ),
  1315. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  1316. 'SCRIPT_DELIMITERS' => array(
  1317. ),
  1318. 'HIGHLIGHT_STRICT_BLOCK' => array(
  1319. ),
  1320. 'PARSER_CONTROL' => array(
  1321. 'KEYWORDS' => array(
  1322. 7 => array(
  1323. 'SPACE_AS_WHITESPACE' => true
  1324. ),
  1325. 8 => array(
  1326. 'SPACE_AS_WHITESPACE' => true
  1327. ),
  1328. 9 => array(
  1329. 'SPACE_AS_WHITESPACE' => true
  1330. )
  1331. )
  1332. ),
  1333. 'TAB_WIDTH' => 4
  1334. );
  1335. ?>