"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/rpg.lang" (12 May 2020, 1956 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 -- Support inline SQL
    3 dofile(HL_LANG_DIR.."sql.lang")
    4 
    5 Description="RPG"
    6 
    7 Categories = {"source", "database"}
    8 
    9 table.insert(Keywords,
   10   { Id=1,
   11     Regex=[[ ^\s*([CDEFHIOP]) ]],
   12   }
   13 )
   14 
   15 table.insert(Keywords,
   16   { Id=1,
   17     List={
   18         "acq", "add", "adddur", "alloc", "andgt", "andlt", "andeq", "andne", "andge",
   19         "andle", "begsr", "bitoff", "biton", "cabxx", "call", "callb", "callp", "casgt",
   20         "caslt", "caseq", "casne", "casge", "casle", "cat", "chain", "check", "checkr",
   21         "clear", "close", "commit", "comp", "dealloc", "define", "delete", "div", "do",
   22         "dou", "dougt", "doult", "doueq", "doune", "douge", "doule", "dow", "dowgt",
   23         "dowlt", "doweq", "downe", "dowge", "dowle", "dsply", "dump", "else", "endcs",
   24         "enddo", "endfor", "endif", "endsl", "endsr", "eval", "evalr", "except",
   25         "exfmt", "exsr", "extrct", "feod", "for", "force", "goto", "if", "ifgt", "iflt",
   26         "ifeq", "ifne", "ifge", "ifle", "in", "iter", "kfld", "klist", "leave",
   27         "leavesr", "lookup", "mhhzo", "mhlzo", "mlhzo", "mllzo", "move", "movea",
   28         "movel", "mult", "mvr", "next", "occur", "open", "orgt", "orlt", "oreq", "orne",
   29         "orge", "orle", "other", "out", "parm", "plist", "post", "read", "readc",
   30         "reade", "readp", "readpe", "realloc", "rel", "reset", "return", "rolbk",
   31         "scan", "select", "setgt", "setll", "setoff", "seton", "shtdn", "sorta", "sqrt",
   32         "sub", "subdur", "subst", "tag", "test", "testb", "testn", "testz", "time",
   33         "unlock", "update", "when", "whengt", "whenlt", "wheneq", "whenne", "whenge",
   34         "whenle", "write", "xfoot", "xlate", "z-add", "z-sub" }
   35 }
   36 )
   37 
   38 table.insert(Keywords,
   39   { Id=2,
   40     Regex=[[ %\w+ ]],
   41   }
   42 )
   43 
   44 table.insert(Keywords,
   45   { Id=3,
   46     Regex=[[ /[\w\-]+ ]],
   47   }
   48 )
   49 
   50 Comments={
   51   { Block=false,
   52     Delimiter= { [[^\s+(\*.*)]] },
   53   },
   54   { Block=false,
   55     Delimiter= { [[//]] },
   56   },
   57 }
   58 
   59 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:]]
   60