KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1409 lines
38KB

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