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