summaryrefslogtreecommitdiff
path: root/support/highlight/langDefs/rexx.lang
blob: 9001d7701e9d48cdecd298b33c22f768c1065e28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Rexx language definition file
#
# Author: Andre Simon
#   Mail: andre.simon1@gmx.de
#   Date: 21.11.2002
#         22.02.2010 added TSO/E Commands / DBCS Functions
# ------------------------------------------
# This file is a part of highlight, a free source code converter released under the GPL.
#
# The file is used to describe keywords and special symbols of programming languages.
# See README in the highlight directory for details.
#
# New definition files for future releases of highlight are always appreciated ;)
#
# ----------
# andre.simon1@gmx.de
# http:/www.andre-simon.de/

$DESCRIPTION=Rexx

$KEYWORDS(kwa)=address additional any arg arguments array by call caseless
continue class description digits do drop end engineering error exit expose
else failure for forever form forward fuzz guard halt if interpret iterate
leave lower lostdigits message name nop nomethod nostring notready novalue
numeric on off otherwise parse procedure pull push propagate queue raise reply
return ret rc result say scientific select sigl signal source syntax then to trace
upper until use user version when while with

# built in functions:
$KEYWORDS(kwb)=abbrev abs append beep binary bitand bitor bitxor both b2x center centre
changestr char charin charout chars compare condition copies countstr close c2d
c2x datetime datatype date delstr delword directory d2c d2x errortext exists
filespec flush format handle insert lastpos left length line linein lineout
lines max min nobuffer open overlay pos position queued query random reclength
read replace reverse right seek sign size shared shareread sharewrite
sourceline space stream streamtype strip subword substr symbol sys time
timestamp translate trunc var value verify word wordindex wordlength wordpos
words write xrange x2b x2c x2d pid pprio ptime rxfuncadd rxfuncdrop rxfuncquery
rxqueue rxmessagebox rxwinexec sysaddrexxmacro sysbootdrive
sysclearrexxmacrospace syscloseeventsem sysclosemutexsem syscls
syscreateeventsem syscreatemutexsem syscurpos syscurstate sysdriveinfo
sysdrivemap sysdropfuncs sysdroprexxmacro sysdumpvariables sysfiledelete
sysfilesearch sysfilesystemtype sysgetfiledatetime sysfiletree sysgetkey sysini
sysloadfuncs sysloadrexxmacrospace sysmkdir sysopeneventsem sysopenmutexsem
sysposteventsem syspulseeventsem sysqueryprocess sysqueryrexxmacro
sysreleasemutexsem sysreorderrexxmacro sysrequestmutexsem sysreseteventsem
sysrmdir syssaverexxmacrospace syssearchpath syssetfiledatetime syssetpriority
syssleep sysstemcopy sysstemdelete syssteminsert sysstemsort sysswitchsession
syssystemdirectory systempfilename systextscreenread systextscreensize
sysutilversion sysvolumelabel syswaiteventsem syswaitnamedpipe sysversion
syswinver

# TSO/E Commands / DBCS Functions
$KEYWORDS(kwc)=externals find getmsg index justify linesize listdsi msg mvsvar outtrap 
prompt setlang storage syscpus sysdsn sysvar userid dbadjust dbbracket 
dbcenter dbcjustify dbcs dbleft dbright dbrleft dbrright dbtodbcs 
dbtosbcs dbunbracket dbvalidate dbwidth delstack dropbuf execio executil 
he hi ht makebuf newstack qbuf qelem qstack rt subcom te ts 

$KEYWORDS(kwd)=regex((\w+)\s*\:)

$STRINGDELIMITERS=" '

$ML_COMMENT=/* */

$SL_COMMENT=-- #!

# avoid highlighting of "attribute numbers"
$DIGIT=regex((?:0x|0X)[0-9a-fA-F]+|\d+[\.]?\d+(?:[eE][\-\+]\d+)?[lLuU]*)

$IGNORECASE=true

$SYMBOLS= ( ) [ ] . , ; : & | < > ! = / * %  + -