REXX Filetype

REXX (REstructured eXtended eXecutor) is an interpreted programming language developed at IBM by Mike Cowlishaw. Proprietary and open source REXX interpreters exist for a wide range of computing platforms ; compilers exist for IBM mainframe computers.

Add the following lines to ~/.config/geany/filetype_extensions.conf under the respective sections [Extensions] and [Groups]

[Extensions]
REXX=*.rex;*.rexx;*.REX;*.REXX;
 
[Groups]
Script=REXX;

Save the configuration file below in your Geany filetype definition files config directory, e.g. ~/.config/geany/filedefs/filetypes.REXX.conf

NB: Note that this filetype definition file is in version 1.0, meaning it can be used but needs improvement.

filetypes.REXX.conf
# For complete documentation of this file, please see Geany's main documentation
 
# REXX's Syntax Highlighting For Geany [ Version 1.0 | August 26, 2015 | Franck ALBARET - http://dansleru.sh ]
 
[styling=C]
operator=0x666666;0xFFFFFF;false;false
 
[keywords]
# all items must be in one line
primary=address Address ADDRESS arg Arg ARG call Call CALL do Do DO drop Drop DROP else Else ELSE end End END exit Exit EXIT expose Expose EXPOSE forward Forward FORWARD forever Forever FOREVER guard Guard GUARD if If IF interpret Interpret INTERPRET iterate Iterate ITERATE leave Leave LEAVE nop Nop NOP numeric Numeric NUMERIC otherwise Otherwise OTHERWISE parse Parse PARSE procedure Procedure PROCEDURE pull Pull PULL push Push PUSH queue Queue QUEUE raise Raise RAISE reply Reply REPLY return Return RETURN say Say SAY select Select SELECT signal Signal SIGNAL source Source SOURCE then Then THEN trace Trace TRACE until Until UNTIL upper Upper UPPER use Use USE var Var VAR value Value VALUE when When WHEN while While WHILE
secondary=abbrev Abbrev ABBREV abs Abs ABS address Address ADDRESS arg Arg ARG beep Beep BEEP bitand Bitand BITAND bitor Bitor BITOR bitxor Bitxor BITXOR b2x B2x B2X center Center CENTER centre Centre CENTRE changestr Changestr CHANGESTR charin Charin CHARIN charout Charout CHAROUT chars Chars CHARS compare Compare COMPARE condition Condition CONDITION copies Copies COPIES countstr Countstr COUNTSTR c2d C2d C2D c2x C2x C2X datatype Datatype DATATYPE date Date DATE delstr Delstr DELSTR delword Delword DELWORD digits Digits DIGITS directory Directory DIRECTORY d2c D2c D2C d2x D2x D2X errortext Errortext ERRORTEXT filespec Filespec FILESPEC form Form FORM format Format FORMAT fuzz Fuzz FUZZ insert Insert INSERT lastpos Lastpos LASTPOS left Left LEFT length Length LENGTH linein Linein LINEIN lineout Lineout LINEOUT lines Lines LINES max Max MAX min Min MIN overlay Overlay OVERLAY pos Pos POS queued Queued QUEUED random Random RANDOM reverse Reverse REVERSE right Right RIGHT sign Sign SIGN sourceline Sourceline SOURCELINE space Space SPACE stream Stream STREAM strip Strip STRIP substr Substr SUBSTR subword Subword SUBWORD time Time TIME trace Trace TRACE translate Translate TRANSLATE trunc Trunc TRUNC value Value VALUE var Var VAR verify Verify VERIFY word Word WORD wordindex Wordindex WORDINDEX wordlength Wordlength WORDLENGTH wordpos Wordpos WORDPOS words Words WORDS xrange Xrange XRANGE x2b X2b X2B x2c X2c X2C x2d X2d X2D
 
# these are the Doxygen keywords
docComment=
 
[settings]
lexer_filetype=C
# Default extension used when saving files
extension=rex
 
# MIME type
mime_type=text/x-rexx
 
# Multiline comments
comment_open=/*
comment_close=*/
 
# context action command (please see Geany's main documentation for details)
context_action_cmd=
 
[indentation]
#width=4
# 0 is spaces, 1 is tabs, 2 is tab & spaces
#type=0